diff --git a/yuthon_report/models/management_area_report.py b/yuthon_report/models/management_area_report.py index c6af41a63..7107646f8 100644 --- a/yuthon_report/models/management_area_report.py +++ b/yuthon_report/models/management_area_report.py @@ -11,9 +11,6 @@ class ManagementAreaReport(models.Model): @api.model def get_management_area_report(self, params): """管理面积报表数据源。""" - import logging - _logger = logging.getLogger(__name__) - _logger.warning('=== 管理面积报表 params: %s', params) domain = [] keyword = params.get("keyword") @@ -51,13 +48,7 @@ class ManagementAreaReport(models.Model): # 查询管理信息明细行(过滤掉没有关联物业的无效行) domain.append(('yuthon_property_id', '!=', False)) - _logger.warning('=== 管理面积报表 domain: %s, query_date_obj: %s', domain, query_date_obj) manage_lines = self.env['manage.information.line'].search(domain) - _logger.warning('=== 管理面积报表 manage_lines count: %s', len(manage_lines)) - # 如果有数据,打印第一条看看字段内容 - if manage_lines: - first = manage_lines[0] - _logger.warning('=== 第一条 end_date=%s, yuthon_property_id=%s', first.end_date, first.yuthon_property_id) rows = [] total_management_area = 0.0 @@ -119,7 +110,6 @@ class ManagementAreaReport(models.Model): return { "rows": rows, - "_debug_rows_count": len(rows), "summary": { "序号": False, "物业id": "合计",