From 49482846dce5c7d6ae52a1eefd8b3fc2c3afd177 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Mon, 13 Apr 2026 21:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_will_task/models/yuthon_will_task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_will_task/models/yuthon_will_task.py b/yuthon_will_task/models/yuthon_will_task.py index 630934cab..bb7a0287a 100644 --- a/yuthon_will_task/models/yuthon_will_task.py +++ b/yuthon_will_task/models/yuthon_will_task.py @@ -49,8 +49,8 @@ class YuthonWillTask(models.Model): hour = (now.hour + 1) % 24 return str(hour) - request_hour_from = fields.Selection(time_list, string='开始时间', default=_default_request_hour_from) - request_hour_to = fields.Selection(time_list, string='结束时间', default=_default_request_hour_to) + request_hour_from = fields.Selection(time_list, string='开始时间') + request_hour_to = fields.Selection(time_list, string='结束时间') 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)