From 3cebd091684432f4cdcb8d5b6f30ea4ba9ebccbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Sat, 24 Jan 2026 15:59:13 +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_salary/models/yuthon_salary_active.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_salary/models/yuthon_salary_active.py b/yuthon_salary/models/yuthon_salary_active.py index 29a91e68b..d8618fb0d 100644 --- a/yuthon_salary/models/yuthon_salary_active.py +++ b/yuthon_salary/models/yuthon_salary_active.py @@ -20,7 +20,7 @@ class YuthonSalaryActive(models.Model): employee_id = fields.Many2one('hr.employee', string='员工', required=True) company_id = fields.Many2one('res.company', string='公司', related='employee_id.company_id', store=True) department_id = fields.Many2one('hr.department', related='employee_id.department_id', string="部门", store=True) - company_old = fields.Many2one(related='employee_id.company_old', string="司龄", store=True) + company_old = fields.Char(related='employee_id.company_old', string="司龄", store=True) onboarding_time = fields.Date(related='employee_id.entry_date', string="入职日期") confirm_status = fields.Selection([('todo', '待发送'), ('un_confirm', '待确认'), ('confirm', '已确认')], string='状态',default='todo') select_time = fields.Selection([('1', '一月'), ('2', '二月'), ('3', '三月'), ('4', '四月'),