添加功能
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user