From fa4b5517f4a4b37b2680256630700d4a0c00c4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Tue, 29 Apr 2025 12:34:27 +0800 Subject: [PATCH] 1 --- yuthon_will_task/models/yuthon_will_task.py | 5 ++--- yuthon_will_task/views/yuthon_will_task_views.xml | 5 ----- yuthon_will_task/wizard/task_room_wizard.xml | 6 +++--- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/yuthon_will_task/models/yuthon_will_task.py b/yuthon_will_task/models/yuthon_will_task.py index c9612c0de..82a1f18a8 100644 --- a/yuthon_will_task/models/yuthon_will_task.py +++ b/yuthon_will_task/models/yuthon_will_task.py @@ -15,15 +15,14 @@ class YuthonWillTask(models.Model): priority = fields.Selection([('general', '不紧急不重要'), ('important', '重要不紧急'), ('urgent', '紧急不重要'), ('very_urgent', '重要且紧急')], string='优先级') - task_type = fields.Many2one('task.type.setting', string='任务类型') user_id = fields.Many2one('res.users', string="创建人", default=lambda self: self.env.user) task_content = fields.Text(string='任务内容') remarks = fields.Text(string='备注') creation_time = fields.Date(string='创建时间', default=fields.Date.today()) employee_ids = fields.Many2many('hr.employee', 'will_task_employee_rel', 'custom_id', 'employee_id', string='人员', default=lambda self: self.env.user.employee_id) - employee_ids2 = fields.Many2many('hr.employee', 'will_task_employee_rel2', - 'custom_id', 'employee_id', string='司机', store=True) + employee_ids2 = fields.Many2many('hr.employee', 'will_task_employee_rel2', 'custom_id', 'employee_id', + string='司机') users_ids = fields.Many2many('res.users', string='用户', store=True) user_role_ids = fields.Many2many('soong.user.role', string='角色') task_time_ids = fields.Many2many('yuthon.task.time', string='提醒') diff --git a/yuthon_will_task/views/yuthon_will_task_views.xml b/yuthon_will_task/views/yuthon_will_task_views.xml index 13c16d803..7fa045878 100644 --- a/yuthon_will_task/views/yuthon_will_task_views.xml +++ b/yuthon_will_task/views/yuthon_will_task_views.xml @@ -13,7 +13,6 @@ - @@ -66,7 +65,6 @@ - @@ -95,7 +93,6 @@ - @@ -135,7 +132,6 @@ - @@ -165,7 +161,6 @@ quick_create_view_id="%(yuthon_will_task.view_yuthon_will_task_form)d" color="employee_ids"> - diff --git a/yuthon_will_task/wizard/task_room_wizard.xml b/yuthon_will_task/wizard/task_room_wizard.xml index 02bc3bfe9..9b26dd9ef 100644 --- a/yuthon_will_task/wizard/task_room_wizard.xml +++ b/yuthon_will_task/wizard/task_room_wizard.xml @@ -5,12 +5,12 @@ task.room.wizard
- + -