Merge pull request !7601 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2026-01-05 14:41:27 +00:00
committed by Gitee
2 changed files with 4 additions and 4 deletions
@@ -813,9 +813,9 @@ class SoongWorkflowMixin(models.AbstractModel):
('employee_id.user_role_ids', 'in', role_ids)
]
# 如果有角色条件,添加到可见性条件中
if role_domain:
allowed_user_ids = self.env['res.users'].search(role_domain).ids
invisible += f" or uid not in {allowed_user_ids}"
# if role_domain:
# allowed_user_ids = self.env['res.users'].search(role_domain).ids
# invisible += f" or uid not in {allowed_user_ids}"
# 如果有隐藏条件的话,启用隐藏
if button.is_review_invisible and button.invisible_expression:
domain = eval(button.invisible_expression)
@@ -82,7 +82,7 @@
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='department_id']" position="after">
<field name="allowed_user_ids" invisible="1"/>
<!-- <field name="allowed_user_ids" invisible="1"/>-->
<field name="number"/>
<field name="establishment_quotas"/>
<field name="no_of_employee" string="在编人数"/>