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', '四月'),