From c740dddb9f1663bde32f3853845acaf285583220 Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Sun, 15 Dec 2024 19:55:20 +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_hr_attendance/models/yuthon_special_approval.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_attendance/models/yuthon_special_approval.py b/yuthon_hr_attendance/models/yuthon_special_approval.py index a1868f0d5..80c8cd23e 100644 --- a/yuthon_hr_attendance/models/yuthon_special_approval.py +++ b/yuthon_hr_attendance/models/yuthon_special_approval.py @@ -5,7 +5,7 @@ from odoo.exceptions import UserError class YuthonSpecialApproval(models.Model): _name = 'yuthon.special.approval' - # _inherit = ['soong.workflow.mixin', 'mail.thread.main.attachment', 'mail.activity.mixin'] + _inherit = ['soong.workflow.mixin', 'mail.thread.main.attachment', 'mail.activity.mixin'] _description = '特殊加班' yuthon_company = fields.Selection(related='users_id.employee_id.yuthon_company', string="公司") @@ -15,7 +15,7 @@ class YuthonSpecialApproval(models.Model): code = fields.Char(string="编号", default=lambda self: self.env['ir.sequence'].next_by_code('special_approval')) resource_id = fields.Many2one('resource.resource', string="发起人", default=lambda self: self.env.user.employee_id.resource_id.id) - employee_ids = fields.Many2many('hr.employee', string="加班人员", domain="[('department_id.name', '=', '联安粮库')]") + employee_ids = fields.Many2many('hr.employee', string="加班人员", domain="[('department_id.name', 'in', ['仓储组', '综合组','保管组', '机安组', '1库', '2库', '3库', '联安粮库'])]") slot_id = fields.Many2one('planning.slot', string="开始日期", domain="[('id', 'in', start_list_ids)]") start_list_ids = fields.Many2many('planning.slot', string="班次列表") documents_ids = fields.Many2many('ir.attachment', string="附件")