添加功能

This commit is contained in:
李鹏宇
2026-04-22 14:51:46 +08:00
parent 86a0c00ea3
commit 1cc4fbfcbe
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class YuthonWillTask(models.Model):
priority = fields.Selection([('important', '重要不紧急'), ('urgent', '紧急不重要'), ('very_urgent', '重要且紧急')], string='优先级')
code = fields.Char(string="任务编号", default=lambda self: self.env['ir.sequence'].next_by_code('task_code'))
user_id = fields.Many2one('res.users', string="创建人", default=lambda self: self.env.user)
company_id = fields.Many2one(related="user_id.employee_id.company_id", string="公司", store=True)
company_id = fields.Many2one(related="employee_id.company_id", string="公司", store=True)
name = fields.Text(string='任务内容')
remarks = fields.Text(string='备注')
employee_ids_short = fields.Char(string='参与人简略', compute='_compute_employee_ids_short')