From 9b69faf82fdef20082b7c8c4fffd3908dee0b49a 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: Tue, 23 Sep 2025 18:08:58 +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 --- .../models/inherit_yuthon_property.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py index 99311dc68..ebf14f8e3 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -146,7 +146,7 @@ class PropertyBankStatements(models.Model): # 应收租金 rent_ids = self.env['property.accounts.receivable'].search([ ('lessee_id.name', '=', record.name_account), - ('contract_id.lessor_id.name', '=', self.your_own_unit), + ('contract_id.lessor_id.display_name', '=', self.your_own_unit), ('management_type_id.name', '=', '租金'), ('is_reconciliation', '=', False), ('due_date', '<=', fields.Date.to_string(last_day)), @@ -154,7 +154,7 @@ class PropertyBankStatements(models.Model): # 应收押金 deposit_ids = self.env['property.accounts.receivable'].search([ ('lessee_id.name', '=', record.name_account), - ('contract_id.lessor_id.name', '=', self.your_own_unit), + ('contract_id.lessor_id.display_name', '=', self.your_own_unit), ('management_type_id.name', '=', '押金'), ('is_reconciliation', '=', False), ('due_date', '<=', fields.Date.to_string(last_day)), @@ -162,7 +162,7 @@ class PropertyBankStatements(models.Model): # 应收管理费 management_ids = self.env['property.accounts.receivable'].search([ ('lessee_id.name', '=', record.name_account), - ('contract_id.lessor_id.name', '=', self.your_own_unit), + ('contract_id.lessor_id.display_name', '=', self.your_own_unit), ('management_type_id.name', '=', '管理费'), ('is_reconciliation', '=', False), ('due_date', '<=', fields.Date.to_string(last_day)), @@ -170,7 +170,7 @@ class PropertyBankStatements(models.Model): # 应收水费 water_ids = self.env['property.accounts.receivable'].search([ ('lessee_id.name', '=', record.name_account), - ('contract_id.lessor_id.name', '=', self.your_own_unit), + ('contract_id.lessor_id.display_name', '=', self.your_own_unit), ('management_type_id.name', '=', '水费'), ('is_reconciliation', '=', False), ('due_date', '<=', fields.Date.to_string(last_day)), @@ -178,7 +178,7 @@ class PropertyBankStatements(models.Model): # 应收电费 electricity_ids = self.env['property.accounts.receivable'].search([ ('lessee_id.name', '=', record.name_account), - ('contract_id.lessor_id.name', '=', self.your_own_unit), + ('contract_id.lessor_id.display_name', '=', self.your_own_unit), ('management_type_id.name', '=', '电费'), ('is_reconciliation', '=', False), ('due_date', '<=', fields.Date.to_string(last_day)),