From 0d5089a92a1d1047503eb3c4d8a367a5d26fa7e2 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: Wed, 26 Nov 2025 17:47: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 --- .../views/property_meter_archives_views.xml | 2 +- .../models/property_lease_contract.py | 4 +- ...contract_accounts_receivable_templates.xml | 51 +++++++------- .../report/lease_contract_report.xml | 4 +- .../wizard/print_payment_wizard.py | 66 +++++++++++-------- .../wizard/print_payment_wizard_views.xml | 2 +- .../models/yuthon_business_approval.py | 1 - .../models/yuthon_message_approval.py | 1 + .../views/yuthon_business_approval_viwes.xml | 1 - .../views/yuthon_message_approval_views.xml | 1 + 10 files changed, 70 insertions(+), 63 deletions(-) diff --git a/yuthon_property/views/property_meter_archives_views.xml b/yuthon_property/views/property_meter_archives_views.xml index 59f6889e3..82e0d6444 100644 --- a/yuthon_property/views/property_meter_archives_views.xml +++ b/yuthon_property/views/property_meter_archives_views.xml @@ -108,6 +108,7 @@ + @@ -117,7 +118,6 @@ - diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index c69e6330f..635e31d44 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -2152,6 +2152,8 @@ class PropertyLeaseContract(models.Model): } def print_payment_notice(self): + contract_ids = self.env["property.lease.contract"].browse( + self._context.get('active_ids', self._context.get('active_id'))) return { "name": "打印缴费通知单", 'type': 'ir.actions.act_window', @@ -2159,7 +2161,7 @@ class PropertyLeaseContract(models.Model): "view_mode": "form", 'target': 'new', 'context': { - 'default_contract_id': self.id, + 'default_contract_ids': contract_ids.ids, } } diff --git a/yuthon_property_approval/report/contract_accounts_receivable_templates.xml b/yuthon_property_approval/report/contract_accounts_receivable_templates.xml index 248d728db..4d9e885a0 100644 --- a/yuthon_property_approval/report/contract_accounts_receivable_templates.xml +++ b/yuthon_property_approval/report/contract_accounts_receivable_templates.xml @@ -47,7 +47,6 @@