添加功能

This commit is contained in:
李鹏宇
2025-12-13 16:43:04 +08:00
parent 2870c5fe6f
commit 86846f47f5
2 changed files with 3 additions and 1 deletions
@@ -53,6 +53,7 @@ class SoongWorkflowCommentWizard(models.TransientModel):
help='并:任何人均给意见,最后一个完成的人转交到下一节点.'
'串:都会收到消息,但任意一个人转交后,即到下一节点,其他人将不再显示,相当于收回.')
is_automatic = fields.Boolean('是否自动匹配')
company_id = fields.Many2one('res.company', '公司', default=lambda self: self.env.user.company_id)
is_this_company = fields.Boolean('本公司', default=True)
employee_ids1 = fields.Many2many(
'hr.employee',
@@ -59,8 +59,9 @@
</group>
<group>
<field name="is_this_company"/>
<field name="company_id" invisible="1"/>
<field name="employee_ids1" widget="many2many_tags" string="人员范围" invisible="1"/>
<field name="employee_ids" widget="many2many_tags" string="人员范围" domain = "[('company_id', '=', company_id), ('id', 'in', employee_ids1)] if is_this_company else []" options="{'no_create': True}"/>
<field name="employee_ids" widget="many2many_tags" string="人员范围" domain = "[('company_id', '=', company_id), ('id', 'in', employee_ids1)] if is_this_company else [('id', 'in', employee_ids1)]" options="{'no_create': True}"/>
</group>
</group>
<group invisible="node_btn_name != '结束'">