@@ -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([])
|
||||
|
||||
Reference in New Issue
Block a user