From 2ca23fc5f72e53d50366e881dac9f85ce40465aa Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Mon, 4 Nov 2024 11:57:17 +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 --- .../models/property_split_approval.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yuthon_property_approval/models/property_split_approval.py b/yuthon_property_approval/models/property_split_approval.py index 5da47a667..b47d5d652 100644 --- a/yuthon_property_approval/models/property_split_approval.py +++ b/yuthon_property_approval/models/property_split_approval.py @@ -41,12 +41,12 @@ class PropertySplitApproval(models.Model): def put_split_message(self): property_list = [] - for i in self.property_split_approval_line_ids: + for property_split in self.property_split_approval_line_ids: property_id = self.env['yuthon.property'].create({ - 'name': i.split_property, - 'building_area': i.split_building_area, - 'rentable_area': i.split_rent_area, - 'asset_type_id': i.split_asset_type_id.id, + 'name': property_split.split_property, + 'building_area': property_split.split_building_area, + 'rentable_area': property_split.split_rent_area, + 'asset_type_id': property_split.split_asset_type_id.id, 'property_merge_approval_id':self.property_id.id, 'is_done_merge': True })