@@ -151,8 +151,11 @@ class SoongWorkflowMixin(models.AbstractModel):
|
||||
lambda l: l.name == '归档' and l.done_by == self.env.user and l.approval_state in ['0', '1'])
|
||||
if not archive_self_log:
|
||||
first_log = record.log_ids.sorted('sequence')[:1]
|
||||
if first_log and first_log.done_by == self.env.user and self.state[0] == first_log.name:
|
||||
if not self.state:
|
||||
has_first_user = True
|
||||
else:
|
||||
if first_log and first_log.done_by == self.env.user and self.state[0] == first_log.name:
|
||||
has_first_user = True
|
||||
|
||||
# :判断当前登录人是否在 log_ids2 中
|
||||
has_log_ids2_user = False
|
||||
|
||||
Reference in New Issue
Block a user