Merge pull request !12617 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2026-08-13 03:07:49 +00:00
committed by Gitee
@@ -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