From f1c86d874899425f6faeeab6d88dcb0f7c4bdfbb Mon Sep 17 00:00:00 2001
From: ljmwkx <1340053001@qq.com>
Date: Wed, 8 Jan 2025 17:35:35 +0800
Subject: [PATCH 1/2] 1
---
yuthon_property_approval/models/property_lease_contract.py | 2 +-
yuthon_property_approval/views/property_lease_contract.xml | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py
index a7eb11734..888bd306c 100644
--- a/yuthon_property_approval/models/property_lease_contract.py
+++ b/yuthon_property_approval/models/property_lease_contract.py
@@ -831,7 +831,7 @@ class PropertyRentBreakdownLine(models.Model):
breakdown_id = fields.Many2one('property.lease.contract', string="关联租赁合同审批")
charges = fields.Char(string="收费项")
unit_price = fields.Float(string="单价")
- monthly_amount = fields.Float(string="月租金")
+ monthly_amount = fields.Float(string="月租金", digits=(16, 0))
start_data = fields.Date(string="开始日期")
end_data = fields.Date(string="结束日期")
month_number = fields.Integer(string="期间月数")
diff --git a/yuthon_property_approval/views/property_lease_contract.xml b/yuthon_property_approval/views/property_lease_contract.xml
index 08c6e8f29..2d1e986e4 100644
--- a/yuthon_property_approval/views/property_lease_contract.xml
+++ b/yuthon_property_approval/views/property_lease_contract.xml
@@ -261,7 +261,10 @@
-
+
+
+
+
From 84723d3b2a3ba57ab4db42437ba684313314f94c Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Wed, 8 Jan 2025 17:45:29 +0800
Subject: [PATCH 2/2] =?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_hr_attendance/models/card_approval.py | 9 ++++++---
yuthon_hr_attendance/views/hr_attendance_views.xml | 2 +-
.../data/data_yuthon_resource_mgmt_config.xml | 2 +-
yuthon_property/views/menuitem.xml | 4 ++--
.../models/property_lease_contract.py | 6 ++++++
5 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/yuthon_hr_attendance/models/card_approval.py b/yuthon_hr_attendance/models/card_approval.py
index 0d7295ff2..6ed19b68f 100644
--- a/yuthon_hr_attendance/models/card_approval.py
+++ b/yuthon_hr_attendance/models/card_approval.py
@@ -40,6 +40,12 @@ class CardApprovals(models.Model):
rep.replacement_time = 'all'
if rep.attendance_id.is_early_card and rep.attendance_id.is_no_card:
rep.replacement_time = 'all'
+ if rep.attendance_id.is_no_card and not rep.attendance_id.check_out:
+ rep.replacement_time = 'quitting'
+ if rep.attendance_id.is_no_card and not rep.attendance_id.check_in:
+ rep.replacement_time = 'work'
+ if rep.attendance_id.is_no_card and not rep.attendance_id.check_in and not rep.attendance_id.check_out:
+ rep.replacement_time = 'all'
@api.depends('users_id', 'attendance_id')
def _compute_name(self):
@@ -92,6 +98,3 @@ class CardApprovals(models.Model):
elif self.related_issues_id:
raise UserError("已经创建了相关的上会记录,不能取消勾选")
-
-
-
diff --git a/yuthon_hr_attendance/views/hr_attendance_views.xml b/yuthon_hr_attendance/views/hr_attendance_views.xml
index 5243ce549..e4519a3f6 100644
--- a/yuthon_hr_attendance/views/hr_attendance_views.xml
+++ b/yuthon_hr_attendance/views/hr_attendance_views.xml
@@ -36,7 +36,7 @@
-
+
diff --git a/yuthon_property/data/data_yuthon_resource_mgmt_config.xml b/yuthon_property/data/data_yuthon_resource_mgmt_config.xml
index 6c8def2e6..1b013b99d 100644
--- a/yuthon_property/data/data_yuthon_resource_mgmt_config.xml
+++ b/yuthon_property/data/data_yuthon_resource_mgmt_config.xml
@@ -69,7 +69,7 @@
代管
- 自营
+ 自有
diff --git a/yuthon_property/views/menuitem.xml b/yuthon_property/views/menuitem.xml
index 4bc61ae49..f327cd9b2 100644
--- a/yuthon_property/views/menuitem.xml
+++ b/yuthon_property/views/menuitem.xml
@@ -336,8 +336,8 @@
-
+
+