From 14a2c0a6ddf7eec83a1869fa7eb653dbc2a331dc Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Fri, 3 Jan 2025 11:58:11 +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/property_lease_contract.py | 1 + yuthon_property_approval/views/property_lease_contract.xml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index 3522f5769..4ec8a1717 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -458,6 +458,7 @@ class PropertyLeaseContract(models.Model): for record in rec.lease_ids: if record.address_id: lease_name.append(record.address_id.name) + rec.name = ','.join(lease_name) property_id = self.env['yuthon.property'].search([('id', '=', record.address_id.id)]) meter_id = property_id.property_archives_id diff --git a/yuthon_property_approval/views/property_lease_contract.xml b/yuthon_property_approval/views/property_lease_contract.xml index b6eefdb7a..6921d7179 100644 --- a/yuthon_property_approval/views/property_lease_contract.xml +++ b/yuthon_property_approval/views/property_lease_contract.xml @@ -45,7 +45,8 @@ - + +