From 8df7eca88942d3bf181eec26bfff754c4f7528d4 Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Mon, 4 Nov 2024 11:57:17 +0800 Subject: [PATCH 1/4] =?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 }) From 4f49024080ca8228a962fb9d15c00bd39986e39b Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Mon, 4 Nov 2024 11:59:24 +0800 Subject: [PATCH 2/4] =?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 --- .../views/property_split_approval_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/views/property_split_approval_views.xml b/yuthon_property_approval/views/property_split_approval_views.xml index a6becb5e4..b1d7cb99b 100644 --- a/yuthon_property_approval/views/property_split_approval_views.xml +++ b/yuthon_property_approval/views/property_split_approval_views.xml @@ -21,6 +21,8 @@
@@ -37,8 +39,6 @@ -