diff --git a/yuthon_property/models/yuthon_property.py b/yuthon_property/models/yuthon_property.py index b85757290..5c077ddea 100644 --- a/yuthon_property/models/yuthon_property.py +++ b/yuthon_property/models/yuthon_property.py @@ -278,7 +278,7 @@ class YuthonProperty(models.Model): property_ids = self.env["yuthon.property"].browse( self._context.get('active_ids', self._context.get('active_id'))) for record in property_ids: - company_id = record.lease_ids[0].address_id.company_id.id if record.lease_ids else '' + company_id = record.manage_information_ids[0].company_id.id if record.manage_information_ids else '' record.company_id = company_id class YuthonPropertyWater(models.Model):