!8048 添加功能

Merge pull request !8048 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2026-01-16 08:02:23 +00:00
committed by Gitee
@@ -126,14 +126,14 @@ class SoongWorkflowMixin(models.AbstractModel):
def _compute_is_confirm(self):
for record in self:
record.is_confirm = True
record.is_confirm = False
record.is_end = True
domain = [('done_by', '=', self.env.user.id), ('workflow_id', '=', record.workflow_id.id),
('res_id', '=', record.id), ('approval_state', 'in', ['0', '1']), ('name', '!=', '归档')]
lg2 = record.log_ids2.search(domain)
lg1 = record.log_ids.search(domain)
if lg2 or lg1:
record.is_confirm = False
record.is_confirm = True
if (not lg1 and not lg2) or record.is_confirm:
record.is_end = False