From dee86be59e7e49622329461ae2739e7fca829c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Mon, 29 Sep 2025 16:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_property_approval/models/inherit_yuthon_property.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py index 755f1dea4..f02edd967 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -170,6 +170,7 @@ class PropertyBankStatements(models.Model): total_rent_month = 0 # 应收租金 rent_ids = self.env['property.accounts.receivable'].search([ + ('contract_id', 'in', record.contract_ids.ids), ('contract_id.lessor_id.referred', '=', self.your_own_unit), ('management_type_id.name', '=', '租金'), ('is_reconciliation', '=', False), @@ -177,6 +178,7 @@ class PropertyBankStatements(models.Model): ]) # 应收押金 deposit_ids = self.env['property.accounts.receivable'].search([ + ('contract_id', 'in', record.contract_ids.ids), ('contract_id.lessor_id.referred', '=', self.your_own_unit), ('management_type_id.name', '=', '押金'), ('is_reconciliation', '=', False), @@ -184,6 +186,7 @@ class PropertyBankStatements(models.Model): ]) # 应收管理费 management_ids = self.env['property.accounts.receivable'].search([ + ('contract_id', 'in', record.contract_ids.ids), ('contract_id.lessor_id.referred', '=', self.your_own_unit), ('management_type_id.name', '=', '管理费'), ('is_reconciliation', '=', False), @@ -191,6 +194,7 @@ class PropertyBankStatements(models.Model): ]) # 应收水费 water_ids = self.env['property.accounts.receivable'].search([ + ('contract_id', 'in', record.contract_ids.ids), ('contract_id.lessor_id.referred', '=', self.your_own_unit), ('management_type_id.name', '=', '水费'), ('is_reconciliation', '=', False), @@ -198,6 +202,7 @@ class PropertyBankStatements(models.Model): ]) # 应收电费 electricity_ids = self.env['property.accounts.receivable'].search([ + ('contract_id', 'in', record.contract_ids.ids), ('contract_id.lessor_id.referred', '=', self.your_own_unit), ('management_type_id.name', '=', '电费'), ('is_reconciliation', '=', False),