From 9342191f36c4bf95d63146b2370cc4d9827fa192 Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Wed, 26 Mar 2025 15:07:55 +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 +-
.../models/yuthon_resource_mgmt_config.py | 8 ++++
yuthon_property/security/ir.model.access.csv | 3 +-
yuthon_property/views/menuitem.xml | 2 +
.../views/yuthon_property_views.xml | 3 +-
.../yuthon_resource_mgmt_config_views.xml | 15 ++++++++
.../wizard/yuthon_property_wizard.py | 10 +++--
.../models/property_evaluate_application.py | 19 +++++++---
.../models/property_merge_approval.py | 4 +-
.../models/property_split_approval.py | 4 +-
.../property_evaluate_application_views.xml | 4 +-
.../views/property_merge_approval_views.xml | 4 +-
.../views/property_split_approval_views.xml | 6 +--
yuthon_work_brand/views/hr_menus.xml | 38 +++++++++----------
14 files changed, 79 insertions(+), 43 deletions(-)
diff --git a/yuthon_property/models/yuthon_property.py b/yuthon_property/models/yuthon_property.py
index 15166182a..1ffccf926 100644
--- a/yuthon_property/models/yuthon_property.py
+++ b/yuthon_property/models/yuthon_property.py
@@ -28,7 +28,7 @@ class YuthonProperty(models.Model):
current_rent = fields.Float(string="现租金")
is_done_split = fields.Boolean(string="已拆分")
is_done_merge = fields.Boolean(string="已合并")
- property_floor = fields.Char(string="楼层")
+ property_floor_id = fields.Many2one('property.floor.setting', string="楼层")
property_orientation = fields.Selection([('north', '东'), ('south', '南'), ('east', '西'), ('west', '北')],
string="朝向")
street = fields.Char(string="街道")
diff --git a/yuthon_property/models/yuthon_resource_mgmt_config.py b/yuthon_property/models/yuthon_resource_mgmt_config.py
index ed23c01f9..4691e7421 100644
--- a/yuthon_property/models/yuthon_resource_mgmt_config.py
+++ b/yuthon_property/models/yuthon_resource_mgmt_config.py
@@ -210,3 +210,11 @@ class MajorEventSetting(models.Model):
inspector_html = fields.Html(string="内容")
documents_ids = fields.Many2many('ir.attachment', string="附件")
start_date = fields.Date(string="生效日期", default=fields.Date.today())
+
+
+class PropertyFloorSetting(models.Model):
+ _name = 'property.floor.setting'
+ _description = '楼层配置'
+
+ name = fields.Char(string="名称")
+ premises_id = fields.Many2one('yuthon.premises.setting', string="所属楼盘")
\ No newline at end of file
diff --git a/yuthon_property/security/ir.model.access.csv b/yuthon_property/security/ir.model.access.csv
index 3acb3e977..7bef271b7 100644
--- a/yuthon_property/security/ir.model.access.csv
+++ b/yuthon_property/security/ir.model.access.csv
@@ -82,4 +82,5 @@ access_yuthon_reference_conditions,yuthon_reference_conditions,model_yuthon_refe
access_rent_free_line,rent_free_line,model_rent_free_line,base.group_user,1,1,1,1
access_feature_setting,feature_setting,model_feature_setting,base.group_user,1,1,1,1
access_major_event_setting,major_event_setting,model_major_event_setting,base.group_user,1,1,1,1
-access_yuthon_major_event_line,yuthon_major_event_line,model_yuthon_major_event_line,base.group_user,1,1,1,1
\ No newline at end of file
+access_yuthon_major_event_line,yuthon_major_event_line,model_yuthon_major_event_line,base.group_user,1,1,1,1
+access_property_floor_setting,property_floor_setting,model_property_floor_setting,base.group_user,1,1,1,1
\ No newline at end of file
diff --git a/yuthon_property/views/menuitem.xml b/yuthon_property/views/menuitem.xml
index f9354b9e2..91f061d16 100644
--- a/yuthon_property/views/menuitem.xml
+++ b/yuthon_property/views/menuitem.xml
@@ -340,6 +340,8 @@
action="view_yuthon_property_produce_action" sequence="80"/>
+