From 3417077f730fdc236bfdf37b2c34e833755d71ba Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Tue, 21 Jan 2025 15:58:51 +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
---
.../views/yuthon_official_labor_views.xml | 6 +--
yuthon_property/__manifest__.py | 1 -
yuthon_property/models/__init__.py | 1 -
yuthon_property/models/property_assess.py | 3 ++
.../models/property_transaction_confirmed.py | 15 ------
yuthon_property/security/ir.model.access.csv | 1 -
yuthon_property/views/menuitem.xml | 6 ---
yuthon_property_approval/__manifest__.py | 4 +-
.../data/sale_renting_code_data.xml | 10 ++++
yuthon_property_approval/models/__init__.py | 1 +
.../models/property_approval.py | 54 +++++++++++++++++--
.../models/property_capacity.py | 28 ++++++++--
.../models/property_early_quitting.py | 24 ++++++++-
.../models/property_evaluate_application.py | 23 +++++++-
.../models/property_handover.py | 23 ++++++++
.../models/property_lease_extension.py | 23 ++++++++
.../models/property_management_fee.py | 3 ++
.../models/property_merge_approval.py | 20 +++++++
.../models/property_offline_registration.py | 24 ++++++++-
.../models/property_penalty_proportion.py | 2 +
.../models/property_penalty_relief.py | 30 +++++++++--
.../models/property_record.py | 24 +++++++++
.../models/property_rent_relief.py | 35 +++++++++---
.../models/property_rental_conditions.py | 3 +-
.../models/property_rental_form.py | 6 ++-
.../models/property_transaction_confirmed.py | 40 ++++++++++++++
.../security/ir.model.access.csv | 2 +
.../views/property_approval_views.xml | 24 ++++-----
.../views/property_capacity.xml | 10 ++--
.../views/property_early_quitting.xml | 32 ++++++-----
.../views/property_eligibility.xml | 18 +++----
.../property_evaluate_application_views.xml | 10 ++--
.../views/property_handover_views.xml | 18 +++----
.../views/property_intention_views.xml | 16 +++---
.../views/property_lease_extension.xml | 32 ++++++-----
.../views/property_management_fee.xml | 6 ++-
.../views/property_menu_all.xml | 8 ++-
.../views/property_merge_approval_views.xml | 5 +-
.../views/property_offline_registration.xml | 11 ++--
.../views/property_penalty_proportion.xml | 6 ++-
.../views/property_penalty_relief.xml | 36 +++++++------
.../views/property_record_views.xml | 7 +++
.../views/property_rent_relief.xml | 26 +++++----
.../views/property_rental_conditions.xml | 14 ++---
.../views/property_rental_form_views.xml | 34 ++++++------
.../views/property_split_approval_views.xml | 1 +
.../views/property_transaction_confirmed.xml | 22 ++++----
.../views/property_transfer_views.xml | 3 +-
yuthon_property_approval/wizard/__init__.py | 1 +
.../wizard/property_add_wizard.py | 51 ++++++++++++++++++
.../wizard/property_add_wizard_views.xml | 35 ++++++++++++
51 files changed, 641 insertions(+), 197 deletions(-)
delete mode 100644 yuthon_property/models/property_transaction_confirmed.py
create mode 100644 yuthon_property_approval/models/property_transaction_confirmed.py
rename {yuthon_property => yuthon_property_approval}/views/property_transaction_confirmed.xml (64%)
create mode 100644 yuthon_property_approval/wizard/property_add_wizard.py
create mode 100644 yuthon_property_approval/wizard/property_add_wizard_views.xml
diff --git a/yuthon_official/views/yuthon_official_labor_views.xml b/yuthon_official/views/yuthon_official_labor_views.xml
index 0a65a133d..50d838c0d 100644
--- a/yuthon_official/views/yuthon_official_labor_views.xml
+++ b/yuthon_official/views/yuthon_official_labor_views.xml
@@ -21,6 +21,9 @@
+
+
+
@@ -28,9 +31,6 @@
-
-
-
diff --git a/yuthon_property/__manifest__.py b/yuthon_property/__manifest__.py
index 0c203f337..c14c3d340 100644
--- a/yuthon_property/__manifest__.py
+++ b/yuthon_property/__manifest__.py
@@ -22,7 +22,6 @@
'views/yuthon_expert_database_views.xml',
'views/yuthon_property_message_views.xml',
'views/yuthon_precinct_message_views.xml',
- 'views/property_transaction_confirmed.xml',
'views/yuthon_resource_mgmt_config_views.xml',
'views/property_message_fee_views.xml',
'views/property_meter_archives_views.xml',
diff --git a/yuthon_property/models/__init__.py b/yuthon_property/models/__init__.py
index 644a0ff33..00042ae54 100644
--- a/yuthon_property/models/__init__.py
+++ b/yuthon_property/models/__init__.py
@@ -8,7 +8,6 @@ from . import yuthon_resource_mgmt_config
from . import yuthon_draw_result
from . import yuthon_expert_database
from . import yuthon_property_evaluation
-from . import property_transaction_confirmed
from . import property_meter_archives
from . import property_meter_water
from . import property_assess
diff --git a/yuthon_property/models/property_assess.py b/yuthon_property/models/property_assess.py
index 7be99361c..3d2ba56ab 100644
--- a/yuthon_property/models/property_assess.py
+++ b/yuthon_property/models/property_assess.py
@@ -29,3 +29,6 @@ class PropertyMeterReading(models.Model):
code = fields.Char(string="Code")
current_meter = fields.Float(string='本次')
+
+class PropertyTransactionConfirmed(models.Model):
+ _name = 'property.transaction.confirmed'
diff --git a/yuthon_property/models/property_transaction_confirmed.py b/yuthon_property/models/property_transaction_confirmed.py
deleted file mode 100644
index 3891a9447..000000000
--- a/yuthon_property/models/property_transaction_confirmed.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from odoo import models, fields, api, exceptions, _
-from datetime import datetime
-from odoo.exceptions import UserError, ValidationError
-
-
-class PropertyTransactionConfirmed(models.Model):
- _name = 'property.transaction.confirmed'
- _description = '成交确认书'
-
-
- name = fields.Char(string='标题')
- property_id = fields.Char(string='物业') #后续many2many字段
- lessee = fields.Char(string='承租人')
- entity_type = fields.Selection([('person', '个人'), ('enterprise', '企业')], string='实体类型')
- details = fields.Text(string='详情') #这里可以完善承租方信息,为租赁合同服务
diff --git a/yuthon_property/security/ir.model.access.csv b/yuthon_property/security/ir.model.access.csv
index 1c6113c39..c0d577fb7 100644
--- a/yuthon_property/security/ir.model.access.csv
+++ b/yuthon_property/security/ir.model.access.csv
@@ -14,7 +14,6 @@ access_yuthon_resource_house_type,yuthon_resource_house_type,model_yuthon_resour
access_yuthon_resource_purpose,yuthon_resource_purpose,model_yuthon_resource_purpose,base.group_user,1,1,1,1
access_yuthon_resource_management_type,yuthon_resource_management_type,model_yuthon_resource_management_type,base.group_user,1,1,1,1
access_yuthon_resource_billing_type,yuthon_resource_billing_type,model_yuthon_resource_billing_type,base.group_user,1,1,1,1
-access_property_transaction_confirmed,property_transaction_confirmed,model_property_transaction_confirmed,base.group_user,1,1,1,1
access_property_meter_archives,property_meter_archives,model_property_meter_archives,base.group_user,1,1,1,1
access_property_meter_water,property_meter_water,model_property_meter_water,base.group_user,1,1,1,1
access_title_information_line,title_information_line,model_title_information_line,base.group_user,1,1,1,1
diff --git a/yuthon_property/views/menuitem.xml b/yuthon_property/views/menuitem.xml
index 9814ff9c2..ab1e01cbe 100644
--- a/yuthon_property/views/menuitem.xml
+++ b/yuthon_property/views/menuitem.xml
@@ -55,12 +55,6 @@
name="招租"
parent="yuthon_property_menu_root"/>
-
-
diff --git a/yuthon_property_approval/views/property_handover_views.xml b/yuthon_property_approval/views/property_handover_views.xml
index c289508eb..acb6c60dd 100644
--- a/yuthon_property_approval/views/property_handover_views.xml
+++ b/yuthon_property_approval/views/property_handover_views.xml
@@ -18,22 +18,22 @@
diff --git a/yuthon_property_approval/views/property_record_views.xml b/yuthon_property_approval/views/property_record_views.xml
index 933223b27..68e72e962 100644
--- a/yuthon_property_approval/views/property_record_views.xml
+++ b/yuthon_property_approval/views/property_record_views.xml
@@ -20,6 +20,9 @@
+
+
@@ -40,6 +45,8 @@
+
+
diff --git a/yuthon_property_approval/views/property_rent_relief.xml b/yuthon_property_approval/views/property_rent_relief.xml
index b5ac33d7b..9ef83e368 100644
--- a/yuthon_property_approval/views/property_rent_relief.xml
+++ b/yuthon_property_approval/views/property_rent_relief.xml
@@ -6,7 +6,9 @@
-
+
+
+
@@ -17,22 +19,24 @@