From 010e49c6fd1510a3d71a38be1c0b94571e7ccb3c 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 17:28:05 +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/views/property_bank_statements_views.xml | 2 +- yuthon_property/views/property_meter_archives_views.xml | 8 ++++++++ .../wizard/property_reconciliation_wizard.py | 3 --- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/yuthon_property/views/property_bank_statements_views.xml b/yuthon_property/views/property_bank_statements_views.xml index e2eeb6df0..21b1a5b99 100644 --- a/yuthon_property/views/property_bank_statements_views.xml +++ b/yuthon_property/views/property_bank_statements_views.xml @@ -86,7 +86,7 @@ 银行流水 property.bank.statements - tree,form,search + tree,search [('is_company', '=', True)] {'group_by': 'bank_state'} + diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index 2208d91c9..5521a172d 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -381,7 +381,6 @@ class PropertyReconciliationWizard(models.Model): last_day = (first_day + relativedelta(months=1)) - relativedelta(days=1) domain = [ ('management_type_id.name', '!=', '违约金'), - ('lessee_id', '=', first_line.tenant_id.id), ('is_reconciliation', '=', False), ('is_suspend', '=', False), ('due_date', '>=', first_day), @@ -422,7 +421,6 @@ class PropertyReconciliationWizard(models.Model): ('due_date', '=', extract_start_date), ('contract_id', '=', line.contract_id.id), ('management_type_id', '=', management_type_id.id), - ('lessee_id', '=', first_line.tenant_id.id), ] # 检查是否已有相同记录 existing_record = self.env['property.accounts.receivable'].search(check_domain) @@ -441,7 +439,6 @@ class PropertyReconciliationWizard(models.Model): 'due_date_end': extract_end_date, 'penalty': reconciliation_id.rent, 'management_type_id': management_type_id.id, - 'lessee_id': first_line.tenant_id.id, 'contract_id': line.contract_id.id, 'delivered1': line.amount, 'payout_date': rec.actual_date if (line.rent == line.amount and line.rent != 0) else None,