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