From ced8a955090e80f3bb80e3dbbee7bbde65e5dc16 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Fri, 3 Jan 2025 15:45:42 +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/models/yuthon_property.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):