From e3d461bad95896f5d63ef0f8cef29980234996d1 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 22 May 2025 21:43:35 +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_contract/models/inherit_hr_contract.py | 4 ++-- yuthon_contract/views/inherit_hr_contract_views.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/yuthon_contract/models/inherit_hr_contract.py b/yuthon_contract/models/inherit_hr_contract.py index e42c37b9b..316f07eec 100644 --- a/yuthon_contract/models/inherit_hr_contract.py +++ b/yuthon_contract/models/inherit_hr_contract.py @@ -25,8 +25,8 @@ class HrContract(models.Model): ('attendance', 'Attendances'), ('planning', '特殊排版')]) is_probation = fields.Boolean(string="试用期") - start_date = fields.Date(string="开始日期", required=True, default=fields.Date.today) - end_date = fields.Date(string="结束日期", required=True, + start_date = fields.Date(string="试用开始日期", required=True, default=fields.Date.today) + end_date = fields.Date(string="试用结束日期", required=True, default=lambda self: fields.Date.today() + relativedelta(months=+3)) salary_day = fields.Float(string="日薪") party_id = fields.Many2one('yuthon.party.setting', string='甲方(用人单位)') diff --git a/yuthon_contract/views/inherit_hr_contract_views.xml b/yuthon_contract/views/inherit_hr_contract_views.xml index e6c13d8f3..288d8658f 100644 --- a/yuthon_contract/views/inherit_hr_contract_views.xml +++ b/yuthon_contract/views/inherit_hr_contract_views.xml @@ -33,8 +33,8 @@ - - + + 工作日历