Merge pull request !4987 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2025-09-08 08:53:21 +00:00
committed by Gitee
@@ -126,7 +126,7 @@ class SoongWorkflowRecord(models.Model):
@api.model
def get_view(self, view_id=None, view_type='form', **options):
"""在视图加载时检查当前用户是否在经办人列表中,并更新状态"""
if options.get('action_id') == 538:
if options.get('action_id') == 3236 or options.get('action_id') == 3996:
current_employee = self.env['hr.employee'].search([('user_id', '=', self.env.uid)], limit=1)
if current_employee:
all_records = self.search([])