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 @@
-