From e7c71ee7657541de9675c1f18a110495eb45f331 Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Sun, 6 Apr 2025 14:57:06 +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
---
room/views/room_booking_views.xml | 2 +-
room/views/room_room_views.xml | 4 +-
.../views/soong_user_role_views.xml | 6 +-
.../views/soong_workflow_inspector_views.xml | 2 +-
yuthon_holiday/views/hr_leave_batch.xml | 4 +-
.../views/yuthon_fixes_approval_views.xml | 4 +-
yuthon_hr_attendance/views/card_approval.xml | 4 +-
yuthon_hr_attendance/views/duty_approval.xml | 4 +-
yuthon_hr_attendance/views/go_approval.xml | 2 +-
.../hr_attendance_detail_wechat_views.xml | 6 +-
.../views/hr_attendance_month_views.xml | 8 +-
.../views/hr_attendance_views.xml | 4 +-
.../inherit_planning_slot_template_views.xml | 2 +-
.../views/overtime_approval.xml | 4 +-
.../views/remove_holiday_approval.xml | 4 +-
.../views/yuthon_abnormal_approval_views.xml | 4 +-
.../yuthon_adjustments_approval_views.xml | 6 +-
.../views/yuthon_customer_approval_views.xml | 4 +-
.../views/yuthon_run_planning_views.xml | 2 +-
.../views/yuthon_shift_approval_views.xml | 2 +-
.../views/yuthon_shift_planning_views.xml | 2 +-
.../views/yuthon_special_approval_views.xml | 2 +-
.../views/inherit_hr_applicant_views.xml | 4 +-
.../views/yuthon_job_postings_views.xml | 2 +-
.../views/yuthon_medical_manage_views.xml | 6 +-
.../views/yuthon_medical_rule_views.xml | 2 +-
.../wizard/hr_employee_time_wizard_views.xml | 2 +-
.../views/yuthon_interview_approval_views.xml | 2 +-
.../views/yuthon_onboard_approval_views.xml | 2 +-
.../views/yuthon_inspection_items_views.xml | 4 +-
.../views/yuthon_inspection_route_views.xml | 4 +-
.../views/yuthon_inspection_scores_views.xml | 4 +-
.../views/yuthon_inspection_views.xml | 4 +-
.../views/issue_approval_decision_views.xml | 2 +-
yuthon_issue/views/issue_approval_views.xml | 8 +-
.../views/yuthon_lessee_notice.xml | 4 +-
.../views/property_report_repair.xml | 4 +-
.../views/yuthon_maintain_desktop_views.xml | 4 +-
.../views/yuthon_confirm_users_views.xml | 2 +-
yuthon_notice/views/yuthon_notice_views.xml | 8 +-
.../yuthon_official_incoming_labor_views.xml | 4 +-
.../yuthon_official_incoming_normal_views.xml | 6 +-
.../yuthon_official_incoming_party_views.xml | 4 +-
.../views/yuthon_official_labor_views.xml | 4 +-
.../views/yuthon_official_party_views.xml | 4 +-
.../views/yuthon_official_views.xml | 4 +-
.../views/yuthon_duty_management.xml | 4 +-
.../views/yuthon_employee_appraisal.xml | 2 +-
.../views/yuthon_employee_approval.xml | 8 +-
.../views/yuthon_employee_performance.xml | 4 +-
.../views/yuthon_grading_tasks.xml | 4 +-
yuthon_performance/views/yuthon_kpi_tasks.xml | 4 +-
.../views/yuthon_tissue_duty_approval.xml | 8 +-
yuthon_property/__manifest__.py | 4 +-
.../models/property_evaluation_plan.py | 36 +++-----
yuthon_property/models/yuthon_property.py | 38 +++++++-
yuthon_property/security/ir.model.access.csv | 4 +-
.../static/src/js/evaluation_create_button.js | 29 +++++++
.../src/xml/evaluation_create_button.xml | 10 +++
.../views/property_electric_reading_views.xml | 2 +-
.../views/property_evaluation_plan_view.xml | 7 +-
.../views/property_water_reading_views.xml | 2 +-
.../views/yuthon_property_views.xml | 9 +-
yuthon_property/wizard/__init__.py | 2 +-
.../wizard/evaluation_plan_wizard.py | 32 +++++++
...s.xml => evaluation_plan_wizard_views.xml} | 11 ++-
.../wizard/rental_scheme_wizard.py | 35 --------
.../models/property_evaluate_application.py | 87 +++----------------
.../models/property_lease_contract.py | 14 +++
.../security/ir.model.access.csv | 1 -
.../views/perperty_claim_approval_views.xml | 4 +-
.../property_borrowing_approval_views.xml | 4 +-
.../views/property_eligibility.xml | 2 +-
.../property_evaluate_application_views.xml | 64 ++++----------
.../views/property_intention_views.xml | 4 +-
.../views/property_lease_contract.xml | 10 +--
.../views/property_transfer_views.xml | 2 +-
.../views/inherit_hr_payslip_views.xml | 4 +-
.../views/yuthon_payroll_project_views.xml | 4 +-
.../views/yuthon_office_supplies_views.xml | 8 +-
.../views/yuthon_care_condolences_views.xml | 2 +-
.../views/yuthon_message_approval_views.xml | 6 +-
.../views/yuthon_trade_activities.xml | 4 +-
yuthon_trade/views/yuthon_trade_premium.xml | 4 +-
84 files changed, 316 insertions(+), 339 deletions(-)
create mode 100644 yuthon_property/static/src/js/evaluation_create_button.js
create mode 100644 yuthon_property/static/src/xml/evaluation_create_button.xml
create mode 100644 yuthon_property/wizard/evaluation_plan_wizard.py
rename yuthon_property/wizard/{rental_scheme_wizard_views.xml => evaluation_plan_wizard_views.xml} (64%)
delete mode 100644 yuthon_property/wizard/rental_scheme_wizard.py
diff --git a/room/views/room_booking_views.xml b/room/views/room_booking_views.xml
index c7afa24d2..9abccebc9 100644
--- a/room/views/room_booking_views.xml
+++ b/room/views/room_booking_views.xml
@@ -152,7 +152,7 @@
-
+
diff --git a/room/views/room_room_views.xml b/room/views/room_room_views.xml
index 9dcd48c04..309d20620 100644
--- a/room/views/room_room_views.xml
+++ b/room/views/room_room_views.xml
@@ -70,7 +70,7 @@
-
+
@@ -117,7 +117,7 @@
-
+
diff --git a/soong_workflow/views/soong_user_role_views.xml b/soong_workflow/views/soong_user_role_views.xml
index e019f21fd..2923c9301 100644
--- a/soong_workflow/views/soong_user_role_views.xml
+++ b/soong_workflow/views/soong_user_role_views.xml
@@ -29,7 +29,7 @@
-
+
@@ -58,7 +58,7 @@
-
+
@@ -79,7 +79,7 @@
-
+
diff --git a/soong_workflow/views/soong_workflow_inspector_views.xml b/soong_workflow/views/soong_workflow_inspector_views.xml
index a61046b25..b53509f81 100644
--- a/soong_workflow/views/soong_workflow_inspector_views.xml
+++ b/soong_workflow/views/soong_workflow_inspector_views.xml
@@ -7,7 +7,7 @@
-
+
diff --git a/yuthon_holiday/views/hr_leave_batch.xml b/yuthon_holiday/views/hr_leave_batch.xml
index 0c77cdc40..a692c5a1a 100644
--- a/yuthon_holiday/views/hr_leave_batch.xml
+++ b/yuthon_holiday/views/hr_leave_batch.xml
@@ -8,7 +8,7 @@
-
+
@@ -47,7 +47,7 @@
-
+
diff --git a/yuthon_holiday/views/yuthon_fixes_approval_views.xml b/yuthon_holiday/views/yuthon_fixes_approval_views.xml
index a02aba483..744f2188e 100644
--- a/yuthon_holiday/views/yuthon_fixes_approval_views.xml
+++ b/yuthon_holiday/views/yuthon_fixes_approval_views.xml
@@ -6,8 +6,8 @@
-
-
+
+
diff --git a/yuthon_hr_attendance/views/card_approval.xml b/yuthon_hr_attendance/views/card_approval.xml
index bb446c5ba..43bbdf919 100644
--- a/yuthon_hr_attendance/views/card_approval.xml
+++ b/yuthon_hr_attendance/views/card_approval.xml
@@ -6,7 +6,7 @@
-
+
@@ -45,7 +45,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/duty_approval.xml b/yuthon_hr_attendance/views/duty_approval.xml
index 1f9f800fa..85884583e 100644
--- a/yuthon_hr_attendance/views/duty_approval.xml
+++ b/yuthon_hr_attendance/views/duty_approval.xml
@@ -6,7 +6,7 @@
-
+
@@ -49,7 +49,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/go_approval.xml b/yuthon_hr_attendance/views/go_approval.xml
index 2cac1f8b0..c80cfa665 100644
--- a/yuthon_hr_attendance/views/go_approval.xml
+++ b/yuthon_hr_attendance/views/go_approval.xml
@@ -7,7 +7,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/hr_attendance_detail_wechat_views.xml b/yuthon_hr_attendance/views/hr_attendance_detail_wechat_views.xml
index 69c95d9b7..0b68f7383 100644
--- a/yuthon_hr_attendance/views/hr_attendance_detail_wechat_views.xml
+++ b/yuthon_hr_attendance/views/hr_attendance_detail_wechat_views.xml
@@ -34,8 +34,8 @@
-
-
+
+
@@ -50,7 +50,7 @@
@@ -54,7 +54,7 @@
hr.attendance
-
+
diff --git a/yuthon_hr_attendance/views/inherit_planning_slot_template_views.xml b/yuthon_hr_attendance/views/inherit_planning_slot_template_views.xml
index 0cf34557e..120ace2f7 100644
--- a/yuthon_hr_attendance/views/inherit_planning_slot_template_views.xml
+++ b/yuthon_hr_attendance/views/inherit_planning_slot_template_views.xml
@@ -8,7 +8,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/overtime_approval.xml b/yuthon_hr_attendance/views/overtime_approval.xml
index 3fcaef696..947ec3f45 100644
--- a/yuthon_hr_attendance/views/overtime_approval.xml
+++ b/yuthon_hr_attendance/views/overtime_approval.xml
@@ -6,7 +6,7 @@
-
+
@@ -52,7 +52,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/remove_holiday_approval.xml b/yuthon_hr_attendance/views/remove_holiday_approval.xml
index b40bef41a..d59bfda01 100644
--- a/yuthon_hr_attendance/views/remove_holiday_approval.xml
+++ b/yuthon_hr_attendance/views/remove_holiday_approval.xml
@@ -7,7 +7,7 @@
-
+
@@ -54,7 +54,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/yuthon_abnormal_approval_views.xml b/yuthon_hr_attendance/views/yuthon_abnormal_approval_views.xml
index 8bf7d72fe..3e2bf40e9 100644
--- a/yuthon_hr_attendance/views/yuthon_abnormal_approval_views.xml
+++ b/yuthon_hr_attendance/views/yuthon_abnormal_approval_views.xml
@@ -6,7 +6,7 @@
-
+
@@ -53,7 +53,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/yuthon_adjustments_approval_views.xml b/yuthon_hr_attendance/views/yuthon_adjustments_approval_views.xml
index 989a7852c..011ee53a6 100644
--- a/yuthon_hr_attendance/views/yuthon_adjustments_approval_views.xml
+++ b/yuthon_hr_attendance/views/yuthon_adjustments_approval_views.xml
@@ -6,8 +6,8 @@
-
-
+
+
@@ -53,7 +53,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/yuthon_customer_approval_views.xml b/yuthon_hr_attendance/views/yuthon_customer_approval_views.xml
index 3e94120c7..d204771b4 100644
--- a/yuthon_hr_attendance/views/yuthon_customer_approval_views.xml
+++ b/yuthon_hr_attendance/views/yuthon_customer_approval_views.xml
@@ -6,7 +6,7 @@
-
+
@@ -50,7 +50,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/yuthon_run_planning_views.xml b/yuthon_hr_attendance/views/yuthon_run_planning_views.xml
index 2b24c5129..146fb033c 100644
--- a/yuthon_hr_attendance/views/yuthon_run_planning_views.xml
+++ b/yuthon_hr_attendance/views/yuthon_run_planning_views.xml
@@ -32,7 +32,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/yuthon_shift_approval_views.xml b/yuthon_hr_attendance/views/yuthon_shift_approval_views.xml
index 4cc2d206f..08e1047fc 100644
--- a/yuthon_hr_attendance/views/yuthon_shift_approval_views.xml
+++ b/yuthon_hr_attendance/views/yuthon_shift_approval_views.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/yuthon_shift_planning_views.xml b/yuthon_hr_attendance/views/yuthon_shift_planning_views.xml
index b0cb5a2b8..bfb5184e2 100644
--- a/yuthon_hr_attendance/views/yuthon_shift_planning_views.xml
+++ b/yuthon_hr_attendance/views/yuthon_shift_planning_views.xml
@@ -31,7 +31,7 @@
-
+
diff --git a/yuthon_hr_attendance/views/yuthon_special_approval_views.xml b/yuthon_hr_attendance/views/yuthon_special_approval_views.xml
index 3b69e08e5..398a7c269 100644
--- a/yuthon_hr_attendance/views/yuthon_special_approval_views.xml
+++ b/yuthon_hr_attendance/views/yuthon_special_approval_views.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/yuthon_hr_employee/views/inherit_hr_applicant_views.xml b/yuthon_hr_employee/views/inherit_hr_applicant_views.xml
index 6daa4191d..753ce0d5c 100644
--- a/yuthon_hr_employee/views/inherit_hr_applicant_views.xml
+++ b/yuthon_hr_employee/views/inherit_hr_applicant_views.xml
@@ -26,7 +26,7 @@
-
+
@@ -79,7 +79,7 @@
岗位
-
+
diff --git a/yuthon_hr_employee/views/yuthon_job_postings_views.xml b/yuthon_hr_employee/views/yuthon_job_postings_views.xml
index a96e307ed..8437b79c1 100644
--- a/yuthon_hr_employee/views/yuthon_job_postings_views.xml
+++ b/yuthon_hr_employee/views/yuthon_job_postings_views.xml
@@ -22,7 +22,7 @@
-
+
diff --git a/yuthon_hr_employee/views/yuthon_medical_manage_views.xml b/yuthon_hr_employee/views/yuthon_medical_manage_views.xml
index 2957dd0fd..dba33da80 100644
--- a/yuthon_hr_employee/views/yuthon_medical_manage_views.xml
+++ b/yuthon_hr_employee/views/yuthon_medical_manage_views.xml
@@ -8,7 +8,7 @@
-
+
@@ -32,9 +32,9 @@
diff --git a/yuthon_inspection/views/yuthon_inspection_route_views.xml b/yuthon_inspection/views/yuthon_inspection_route_views.xml
index fc60347ea..2ac995587 100644
--- a/yuthon_inspection/views/yuthon_inspection_route_views.xml
+++ b/yuthon_inspection/views/yuthon_inspection_route_views.xml
@@ -10,7 +10,7 @@
-
+
@@ -29,7 +29,7 @@
-
+
diff --git a/yuthon_inspection/views/yuthon_inspection_scores_views.xml b/yuthon_inspection/views/yuthon_inspection_scores_views.xml
index 57ac81441..3274b4ba0 100644
--- a/yuthon_inspection/views/yuthon_inspection_scores_views.xml
+++ b/yuthon_inspection/views/yuthon_inspection_scores_views.xml
@@ -9,7 +9,7 @@
-
+
@@ -30,7 +30,7 @@
-
+
diff --git a/yuthon_inspection/views/yuthon_inspection_views.xml b/yuthon_inspection/views/yuthon_inspection_views.xml
index b993023fe..3d6b9b0d1 100644
--- a/yuthon_inspection/views/yuthon_inspection_views.xml
+++ b/yuthon_inspection/views/yuthon_inspection_views.xml
@@ -9,7 +9,7 @@
-
+
@@ -29,7 +29,7 @@
-
+
diff --git a/yuthon_issue/views/issue_approval_decision_views.xml b/yuthon_issue/views/issue_approval_decision_views.xml
index 1f892e75f..65abcb401 100644
--- a/yuthon_issue/views/issue_approval_decision_views.xml
+++ b/yuthon_issue/views/issue_approval_decision_views.xml
@@ -47,7 +47,7 @@
-
+
diff --git a/yuthon_issue/views/issue_approval_views.xml b/yuthon_issue/views/issue_approval_views.xml
index 6d11eab1f..9b9640ea7 100644
--- a/yuthon_issue/views/issue_approval_views.xml
+++ b/yuthon_issue/views/issue_approval_views.xml
@@ -8,7 +8,7 @@
-
+
@@ -49,14 +49,14 @@
-
+
-
+
@@ -72,7 +72,7 @@
-
+
diff --git a/yuthon_lessee_service/views/yuthon_lessee_notice.xml b/yuthon_lessee_service/views/yuthon_lessee_notice.xml
index c42d875ec..9514a097b 100644
--- a/yuthon_lessee_service/views/yuthon_lessee_notice.xml
+++ b/yuthon_lessee_service/views/yuthon_lessee_notice.xml
@@ -5,7 +5,7 @@
yuthon.lessee.notice
-
+
@@ -43,7 +43,7 @@
-
+
diff --git a/yuthon_maintain/views/property_report_repair.xml b/yuthon_maintain/views/property_report_repair.xml
index 4a93d10d8..2a5764b8d 100644
--- a/yuthon_maintain/views/property_report_repair.xml
+++ b/yuthon_maintain/views/property_report_repair.xml
@@ -44,13 +44,13 @@
-
+
-
+
diff --git a/yuthon_maintain/views/yuthon_maintain_desktop_views.xml b/yuthon_maintain/views/yuthon_maintain_desktop_views.xml
index 28f9956bc..5e3367472 100644
--- a/yuthon_maintain/views/yuthon_maintain_desktop_views.xml
+++ b/yuthon_maintain/views/yuthon_maintain_desktop_views.xml
@@ -8,7 +8,7 @@
-
+
@@ -39,7 +39,7 @@
-
+
diff --git a/yuthon_notice/views/yuthon_confirm_users_views.xml b/yuthon_notice/views/yuthon_confirm_users_views.xml
index 4d7e0e570..07e16f0b1 100644
--- a/yuthon_notice/views/yuthon_confirm_users_views.xml
+++ b/yuthon_notice/views/yuthon_confirm_users_views.xml
@@ -9,7 +9,7 @@
-
+
diff --git a/yuthon_notice/views/yuthon_notice_views.xml b/yuthon_notice/views/yuthon_notice_views.xml
index ced5595a5..9363ffacc 100644
--- a/yuthon_notice/views/yuthon_notice_views.xml
+++ b/yuthon_notice/views/yuthon_notice_views.xml
@@ -9,7 +9,7 @@
decoration-muted="notice_state == 'stop'">
-
+
@@ -57,7 +57,7 @@
-
+
@@ -108,7 +108,7 @@
js_class="custom_notice_tree_button">
-
+
@@ -129,7 +129,7 @@
-
+
diff --git a/yuthon_official/views/yuthon_official_incoming_labor_views.xml b/yuthon_official/views/yuthon_official_incoming_labor_views.xml
index a33581615..6c0de0afc 100644
--- a/yuthon_official/views/yuthon_official_incoming_labor_views.xml
+++ b/yuthon_official/views/yuthon_official_incoming_labor_views.xml
@@ -6,7 +6,7 @@
-
+
@@ -62,7 +62,7 @@
-
+
diff --git a/yuthon_official/views/yuthon_official_incoming_normal_views.xml b/yuthon_official/views/yuthon_official_incoming_normal_views.xml
index a82363a55..d143fd3c0 100644
--- a/yuthon_official/views/yuthon_official_incoming_normal_views.xml
+++ b/yuthon_official/views/yuthon_official_incoming_normal_views.xml
@@ -6,7 +6,7 @@
-
+
@@ -58,8 +58,8 @@
-
-
+
+
diff --git a/yuthon_official/views/yuthon_official_incoming_party_views.xml b/yuthon_official/views/yuthon_official_incoming_party_views.xml
index c233c55e4..9450f69e7 100644
--- a/yuthon_official/views/yuthon_official_incoming_party_views.xml
+++ b/yuthon_official/views/yuthon_official_incoming_party_views.xml
@@ -6,7 +6,7 @@
-
+
@@ -56,7 +56,7 @@
-
+
diff --git a/yuthon_official/views/yuthon_official_labor_views.xml b/yuthon_official/views/yuthon_official_labor_views.xml
index 3281966c9..37983007a 100644
--- a/yuthon_official/views/yuthon_official_labor_views.xml
+++ b/yuthon_official/views/yuthon_official_labor_views.xml
@@ -6,7 +6,7 @@
-
+
@@ -49,7 +49,7 @@
-
+
diff --git a/yuthon_official/views/yuthon_official_party_views.xml b/yuthon_official/views/yuthon_official_party_views.xml
index 9d34ba4c7..a860af874 100644
--- a/yuthon_official/views/yuthon_official_party_views.xml
+++ b/yuthon_official/views/yuthon_official_party_views.xml
@@ -6,7 +6,7 @@
-
+
@@ -57,7 +57,7 @@
-
+
diff --git a/yuthon_official/views/yuthon_official_views.xml b/yuthon_official/views/yuthon_official_views.xml
index d404fb8e7..7fcc676f1 100644
--- a/yuthon_official/views/yuthon_official_views.xml
+++ b/yuthon_official/views/yuthon_official_views.xml
@@ -6,7 +6,7 @@
-
+
@@ -66,7 +66,7 @@
-
+
diff --git a/yuthon_performance/views/yuthon_duty_management.xml b/yuthon_performance/views/yuthon_duty_management.xml
index 5aba7a317..bc480ade4 100644
--- a/yuthon_performance/views/yuthon_duty_management.xml
+++ b/yuthon_performance/views/yuthon_duty_management.xml
@@ -5,7 +5,7 @@
yuthon.duty.management
-
+
@@ -28,7 +28,7 @@
-
+
diff --git a/yuthon_performance/views/yuthon_employee_appraisal.xml b/yuthon_performance/views/yuthon_employee_appraisal.xml
index 798ab9da9..4fe4531fd 100644
--- a/yuthon_performance/views/yuthon_employee_appraisal.xml
+++ b/yuthon_performance/views/yuthon_employee_appraisal.xml
@@ -38,7 +38,7 @@
-
+
diff --git a/yuthon_performance/views/yuthon_employee_approval.xml b/yuthon_performance/views/yuthon_employee_approval.xml
index b12dd263f..c20142de0 100644
--- a/yuthon_performance/views/yuthon_employee_approval.xml
+++ b/yuthon_performance/views/yuthon_employee_approval.xml
@@ -7,8 +7,8 @@
-
-
+
+
@@ -22,14 +22,14 @@
-
+
-
+
diff --git a/yuthon_performance/views/yuthon_employee_performance.xml b/yuthon_performance/views/yuthon_employee_performance.xml
index 0deed3625..633f06d9c 100644
--- a/yuthon_performance/views/yuthon_employee_performance.xml
+++ b/yuthon_performance/views/yuthon_employee_performance.xml
@@ -7,7 +7,7 @@
-
+
@@ -29,7 +29,7 @@
-
+
diff --git a/yuthon_performance/views/yuthon_grading_tasks.xml b/yuthon_performance/views/yuthon_grading_tasks.xml
index 0176a316c..5d62b0339 100644
--- a/yuthon_performance/views/yuthon_grading_tasks.xml
+++ b/yuthon_performance/views/yuthon_grading_tasks.xml
@@ -7,7 +7,7 @@
-
+
@@ -25,7 +25,7 @@
-
+
diff --git a/yuthon_performance/views/yuthon_kpi_tasks.xml b/yuthon_performance/views/yuthon_kpi_tasks.xml
index 123e5243a..58c7d51b9 100644
--- a/yuthon_performance/views/yuthon_kpi_tasks.xml
+++ b/yuthon_performance/views/yuthon_kpi_tasks.xml
@@ -7,7 +7,7 @@
-
+
@@ -25,7 +25,7 @@
-
+
diff --git a/yuthon_performance/views/yuthon_tissue_duty_approval.xml b/yuthon_performance/views/yuthon_tissue_duty_approval.xml
index ed376073b..3282307fa 100644
--- a/yuthon_performance/views/yuthon_tissue_duty_approval.xml
+++ b/yuthon_performance/views/yuthon_tissue_duty_approval.xml
@@ -7,8 +7,8 @@
-
-
+
+
@@ -22,14 +22,14 @@
-
+
-
+
diff --git a/yuthon_property/__manifest__.py b/yuthon_property/__manifest__.py
index cc0a4686e..44a09ec06 100644
--- a/yuthon_property/__manifest__.py
+++ b/yuthon_property/__manifest__.py
@@ -56,8 +56,8 @@
'views/property_accounts_receivable_views.xml',
'wizard/yuthon_property_wizard_views.xml',
'wizard/property_meter_wizard_views.xml',
- 'wizard/rental_scheme_wizard_views.xml',
'wizard/property_tenant_wizard_views.xml',
+ 'wizard/evaluation_plan_wizard_views.xml',
'wizard/property_water_wizard_views.xml',
'wizard/property_statements_wizard_views.xml',
'views/menuitem.xml',
@@ -68,9 +68,11 @@
'yuthon_property/static/src/js/rent_create_button.js',
'yuthon_property/static/src/js/bank_create_button.js',
'yuthon_property/static/src/js/statements_create_button.js',
+ 'yuthon_property/static/src/js/evaluation_create_button.js',
'yuthon_property/static/src/xml/rent_create_button.xml',
'yuthon_property/static/src/xml/bank_create_button.xml',
'yuthon_property/static/src/xml/statements_create_button.xml',
+ 'yuthon_property/static/src/xml/evaluation_create_button.xml',
],
},
'demo': [],
diff --git a/yuthon_property/models/property_evaluation_plan.py b/yuthon_property/models/property_evaluation_plan.py
index 300fb4171..75dad1829 100644
--- a/yuthon_property/models/property_evaluation_plan.py
+++ b/yuthon_property/models/property_evaluation_plan.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError
@@ -20,6 +21,7 @@ class PropertyEvaluationPlan(models.Model):
default='6')
annual_increase_percentage = fields.Float(string='每年递增(%)', igits=(6, 2))
remake = fields.Text(string='备注')
+ state = fields.Selection([('to', '待审批'), ('done', '已审批')], string="状态", default='to')
def put_assessment_approval(self):
property_evaluation_ids = self.env["property.evaluation.plan"].browse(
@@ -27,9 +29,12 @@ class PropertyEvaluationPlan(models.Model):
form_id = self.env.ref('yuthon_property_approval.property_evaluate_application_form').id
property_list = []
for i in property_evaluation_ids:
+ if i.state == 'done':
+ raise UserError('该方案不可提交')
property_list.append([0, 0, {
'property_evaluation_id': i.id,
}])
+ i.write({'state': 'done'})
return {
'name': '提交物业评估',
'view_mode': 'form',
@@ -38,28 +43,15 @@ class PropertyEvaluationPlan(models.Model):
'views': [(form_id, 'form')],
"context": {
'default_property_ids': property_list,
- 'default_is_property': True,
}
}
-
- def rental_scheme_wizard(self):
- property_evaluation_ids = self.env["property.evaluation.plan"].browse(
- self._context.get('active_ids', self._context.get('active_id')))
- evaluation = []
- name_list = []
- for i in property_evaluation_ids:
- name = i.name
- name_list.append(name)
- evaluation.append(i.id)
- name = ','.join(name_list)
+ def button_source(self):
+ domain = [('id', 'in', self.property_ids.ids)]
return {
- 'name': '整租方案弹窗',
- 'type': 'ir.actions.act_window',
- 'view_mode': 'form',
- 'res_model': 'rental.scheme.wizard',
- 'target': 'new',
- 'context': {
- 'default_name': name,
- 'default_property_ids': evaluation
- }
- }
+ "name": "物业",
+ "type": "ir.actions.act_window",
+ "view_mode": "tree",
+ "res_model": "yuthon.property",
+ "domain": domain,
+ "target": "new",
+ }
\ No newline at end of file
diff --git a/yuthon_property/models/yuthon_property.py b/yuthon_property/models/yuthon_property.py
index 208382cf7..0d07e3722 100644
--- a/yuthon_property/models/yuthon_property.py
+++ b/yuthon_property/models/yuthon_property.py
@@ -1,5 +1,6 @@
from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError
+from pypinyin import pinyin,lazy_pinyin
class YuthonProperty(models.Model):
@@ -7,6 +8,7 @@ class YuthonProperty(models.Model):
_description = '物业管理'
_inherit = ['mail.thread.main.attachment', 'mail.activity.mixin']
_rec_name = 'name'
+ _order = 'first_letter'
name = fields.Char(string="资产名称")
users_id = fields.Many2one('res.users', string="申请人", default=lambda self: self.env.user.id)
@@ -80,6 +82,22 @@ class YuthonProperty(models.Model):
property_merge_approval_id = fields.Many2one('yuthon.property', string='关联物业信息')
reference_ids = fields.One2many('yuthon.reference.conditions', 'yuthon_property_id', string='关联出租参考条件明细行')
+ first_letter = fields.Char(string="首字母", compute='_compute_first_letter', store=True)
+
+ @api.depends('name')
+ def _compute_first_letter(self):
+ for record in self:
+ name = record.name
+ if name:
+ first_char = name[0]
+ pinyin_list = lazy_pinyin(first_char)
+ if pinyin_list:
+ record.first_letter = pinyin_list[0][0].upper()
+ else:
+ record.first_letter = ''
+ else:
+ record.first_letter = ''
+
@api.onchange('title_information_ids')
def _onchange_title_information_ids(self):
for rec in self:
@@ -223,11 +241,19 @@ class YuthonProperty(models.Model):
'remake': record.remark,
})
record.write({'state': 'ing'})
+ return {
+ "name": "物业评估方案",
+ 'type': 'ir.actions.act_window',
+ 'res_model': 'property.evaluation.plan',
+ "view_mode": "tree",
+ }
def all_assessment_approval(self):
- property_ids = self.env["yuthon.property"].browse(
- self._context.get('active_ids', self._context.get('active_id')))
- for record in property_ids:
+ property_ids = self.env["yuthon.property"].browse(
+ self._context.get('active_ids', self._context.get('active_id')))
+ for record in property_ids:
+ if record.state == 'ing':
+ raise UserError(f'{record.name}该物业已在评估,请勿重复提交')
self.env['property.evaluation.plan'].create({
'name': record.name,
'property_ids': [(6, 0, [record.id])],
@@ -242,6 +268,12 @@ class YuthonProperty(models.Model):
'remake': record.remark,
})
record.write({'state': 'ing'})
+ return {
+ "name": "物业评估方案",
+ 'type': 'ir.actions.act_window',
+ 'res_model': 'property.evaluation.plan',
+ "view_mode": "tree",
+ }
# 拆分
def put_split_approval(self):
diff --git a/yuthon_property/security/ir.model.access.csv b/yuthon_property/security/ir.model.access.csv
index 712a0393e..947d1c41b 100644
--- a/yuthon_property/security/ir.model.access.csv
+++ b/yuthon_property/security/ir.model.access.csv
@@ -85,5 +85,5 @@ access_major_event_setting,major_event_setting,model_major_event_setting,base.gr
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
access_property_evaluation_plan,property_evaluation_plan,model_property_evaluation_plan,base.group_user,1,1,1,1
-access_rental_scheme_wizard,rental_scheme_wizard,model_rental_scheme_wizard,base.group_user,1,1,1,1
-access_evaluation_company,evaluation_company,model_evaluation_company,base.group_user,1,1,1,1
\ No newline at end of file
+access_evaluation_company,evaluation_company,model_evaluation_company,base.group_user,1,1,1,1
+access_evaluation_plan_wizard,evaluation_plan_wizard,model_evaluation_plan_wizard,base.group_user,1,1,1,1
\ No newline at end of file
diff --git a/yuthon_property/static/src/js/evaluation_create_button.js b/yuthon_property/static/src/js/evaluation_create_button.js
new file mode 100644
index 000000000..747859548
--- /dev/null
+++ b/yuthon_property/static/src/js/evaluation_create_button.js
@@ -0,0 +1,29 @@
+/** @odoo-module */
+import { ListController } from "@web/views/list/list_controller";
+import { registry } from '@web/core/registry';
+import { listView } from '@web/views/list/list_view';
+
+export class CustomEvaluationController extends ListController {
+ setup() {
+ super.setup();
+ }
+
+ openEvaluationWizard() {
+ this.actionService.doAction({
+ type: 'ir.actions.act_window',
+ res_model: 'evaluation.plan.wizard',
+ name: '评估方案',
+ view_mode: 'form',
+ view_type: 'form',
+ views: [[false, 'form']],
+ target: 'new', // 以弹窗形式打开
+ context: {},
+ });
+ }
+}
+
+registry.category("views").add("custom_evaluation_button", {
+ ...listView,
+ Controller: CustomEvaluationController,
+ buttonTemplate: "evaluation_module.ListView.Buttons",
+});
\ No newline at end of file
diff --git a/yuthon_property/static/src/xml/evaluation_create_button.xml b/yuthon_property/static/src/xml/evaluation_create_button.xml
new file mode 100644
index 000000000..7bad7cdd5
--- /dev/null
+++ b/yuthon_property/static/src/xml/evaluation_create_button.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
diff --git a/yuthon_property/views/property_electric_reading_views.xml b/yuthon_property/views/property_electric_reading_views.xml
index 7ca32a4e8..093abbfa5 100644
--- a/yuthon_property/views/property_electric_reading_views.xml
+++ b/yuthon_property/views/property_electric_reading_views.xml
@@ -9,7 +9,7 @@
-
+
diff --git a/yuthon_property/views/property_evaluation_plan_view.xml b/yuthon_property/views/property_evaluation_plan_view.xml
index 4b9b47ad7..dcf6ed5ca 100644
--- a/yuthon_property/views/property_evaluation_plan_view.xml
+++ b/yuthon_property/views/property_evaluation_plan_view.xml
@@ -4,13 +4,12 @@
property.evaluation.plan.tree
property.evaluation.plan
-
+
-
+
@@ -21,6 +20,8 @@
+
+
diff --git a/yuthon_property/views/property_water_reading_views.xml b/yuthon_property/views/property_water_reading_views.xml
index 2c4ac85a0..658bdbc92 100644
--- a/yuthon_property/views/property_water_reading_views.xml
+++ b/yuthon_property/views/property_water_reading_views.xml
@@ -9,7 +9,7 @@
-
+
diff --git a/yuthon_property/views/yuthon_property_views.xml b/yuthon_property/views/yuthon_property_views.xml
index dfdeba5de..ccedde9bf 100644
--- a/yuthon_property/views/yuthon_property_views.xml
+++ b/yuthon_property/views/yuthon_property_views.xml
@@ -9,6 +9,7 @@
+
@@ -16,6 +17,7 @@
+
@@ -367,11 +369,4 @@
code
action = model.trigger_company_id()
-
- 批量评估推送
-
-
- code
- action = model.all_assessment_approval()
-
\ No newline at end of file
diff --git a/yuthon_property/wizard/__init__.py b/yuthon_property/wizard/__init__.py
index 7a60ed4bd..381b1b454 100644
--- a/yuthon_property/wizard/__init__.py
+++ b/yuthon_property/wizard/__init__.py
@@ -3,4 +3,4 @@ from . import property_meter_wizard
from . import property_tenant_wizard
from . import property_water_wizard
from . import property_statements_wizard
-from . import rental_scheme_wizard
+from . import evaluation_plan_wizard
diff --git a/yuthon_property/wizard/evaluation_plan_wizard.py b/yuthon_property/wizard/evaluation_plan_wizard.py
new file mode 100644
index 000000000..c69d59be5
--- /dev/null
+++ b/yuthon_property/wizard/evaluation_plan_wizard.py
@@ -0,0 +1,32 @@
+from odoo import models, fields, api
+from odoo.exceptions import UserError, ValidationError
+
+
+class EvaluationPlanWizard(models.Model):
+ _name = 'evaluation.plan.wizard'
+ _description = '评估方案弹窗'
+
+ property_ids = fields.Many2many('yuthon.property', string='物业')
+
+ def confirm(self):
+ evaluation_area = 0
+ name_list = []
+ first_id = self.property_ids[0]
+ for i in self.property_ids:
+ name = i.name
+ name_list.append(name)
+ evaluation_area += i.evaluation_area
+ name = ','.join(name_list)
+ self.env['property.evaluation.plan'].create({
+ 'name': name,
+ 'assessment_category': 'rent_money',
+ 'evaluation_area': evaluation_area,
+ 'owner_id': first_id.title_information_ids[0].owner_id.id if first_id.title_information_ids else None,
+ 'registered_id': first_id.title_information_ids[0].registered_id.id if first_id.title_information_ids else None,
+ 'rent_id': first_id.reference_ids[0].rent_id.id if first_id.reference_ids else None,
+ 'start_lease_period': first_id.reference_ids[0].start_lease_period if first_id.reference_ids else None,
+ 'end_lease_period': first_id.reference_ids[0].end_lease_period if first_id.reference_ids else None,
+ 'annual_increase_percentage': first_id.reference_ids[0].annual_increase_percentage if first_id.reference_ids else None,
+ 'remake': first_id.remark,
+ 'property_ids': self.property_ids.ids
+ })
\ No newline at end of file
diff --git a/yuthon_property/wizard/rental_scheme_wizard_views.xml b/yuthon_property/wizard/evaluation_plan_wizard_views.xml
similarity index 64%
rename from yuthon_property/wizard/rental_scheme_wizard_views.xml
rename to yuthon_property/wizard/evaluation_plan_wizard_views.xml
index fc01604b0..c63e389a2 100644
--- a/yuthon_property/wizard/rental_scheme_wizard_views.xml
+++ b/yuthon_property/wizard/evaluation_plan_wizard_views.xml
@@ -1,14 +1,13 @@
-
- 整租方案弹窗
- rental.scheme.wizard
+
+ evaluation.plan.wizard.form
+ evaluation.plan.wizard
-
diff --git a/yuthon_property_approval/views/property_intention_views.xml b/yuthon_property_approval/views/property_intention_views.xml
index b383137d1..77faee19f 100644
--- a/yuthon_property_approval/views/property_intention_views.xml
+++ b/yuthon_property_approval/views/property_intention_views.xml
@@ -7,7 +7,7 @@
-
+
@@ -50,7 +50,7 @@
-
+
diff --git a/yuthon_property_approval/views/property_lease_contract.xml b/yuthon_property_approval/views/property_lease_contract.xml
index 37414aa8f..79d47fea4 100644
--- a/yuthon_property_approval/views/property_lease_contract.xml
+++ b/yuthon_property_approval/views/property_lease_contract.xml
@@ -329,6 +329,9 @@
property.lease.contract
+
@@ -765,11 +768,4 @@
code
action = model.action_update_contract()
-
- 批量评估推送
-
-
- code
- action = model.all_put_evaluation_plan()
-
\ No newline at end of file
diff --git a/yuthon_property_approval/views/property_transfer_views.xml b/yuthon_property_approval/views/property_transfer_views.xml
index 2bde923da..1070d290d 100644
--- a/yuthon_property_approval/views/property_transfer_views.xml
+++ b/yuthon_property_approval/views/property_transfer_views.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml
index fdc77993a..444bbd389 100644
--- a/yuthon_salary/views/inherit_hr_payslip_views.xml
+++ b/yuthon_salary/views/inherit_hr_payslip_views.xml
@@ -171,7 +171,7 @@
hr.payslip
-
+
@@ -211,7 +211,7 @@
hr.payslip
-
+
diff --git a/yuthon_salary/views/yuthon_payroll_project_views.xml b/yuthon_salary/views/yuthon_payroll_project_views.xml
index 441e10a58..045faca14 100644
--- a/yuthon_salary/views/yuthon_payroll_project_views.xml
+++ b/yuthon_salary/views/yuthon_payroll_project_views.xml
@@ -10,7 +10,7 @@
-
+
@@ -40,7 +40,7 @@
-
+
diff --git a/yuthon_sps_approval/views/yuthon_office_supplies_views.xml b/yuthon_sps_approval/views/yuthon_office_supplies_views.xml
index 10d1828f1..2e03343c6 100644
--- a/yuthon_sps_approval/views/yuthon_office_supplies_views.xml
+++ b/yuthon_sps_approval/views/yuthon_office_supplies_views.xml
@@ -6,8 +6,8 @@
-
-
+
+
@@ -29,12 +29,12 @@
-
+
-
+
diff --git a/yuthon_trade/views/yuthon_care_condolences_views.xml b/yuthon_trade/views/yuthon_care_condolences_views.xml
index d4b6ca211..0fa20610f 100644
--- a/yuthon_trade/views/yuthon_care_condolences_views.xml
+++ b/yuthon_trade/views/yuthon_care_condolences_views.xml
@@ -23,7 +23,7 @@
-
+
diff --git a/yuthon_trade/views/yuthon_message_approval_views.xml b/yuthon_trade/views/yuthon_message_approval_views.xml
index 375c6c52a..41afd51a7 100644
--- a/yuthon_trade/views/yuthon_message_approval_views.xml
+++ b/yuthon_trade/views/yuthon_message_approval_views.xml
@@ -6,7 +6,7 @@
-
+
@@ -46,8 +46,8 @@
-
-
+
+
diff --git a/yuthon_trade/views/yuthon_trade_activities.xml b/yuthon_trade/views/yuthon_trade_activities.xml
index 99a83f504..dfaa6e3d4 100644
--- a/yuthon_trade/views/yuthon_trade_activities.xml
+++ b/yuthon_trade/views/yuthon_trade_activities.xml
@@ -21,14 +21,14 @@
-
+
-
+
diff --git a/yuthon_trade/views/yuthon_trade_premium.xml b/yuthon_trade/views/yuthon_trade_premium.xml
index 45cdeba6f..58edec9db 100644
--- a/yuthon_trade/views/yuthon_trade_premium.xml
+++ b/yuthon_trade/views/yuthon_trade_premium.xml
@@ -39,14 +39,14 @@
-
+
-
+