添加功能
This commit is contained in:
@@ -153,6 +153,11 @@ class SoongWorkflowMixin(models.AbstractModel):
|
||||
all_approved = all(log.approval_state == '2' for log in lg1)
|
||||
if all_approved:
|
||||
record.is_done = True
|
||||
workflow_record_id = self.env["soong.workflow.record"].search(
|
||||
[("res_model", "=", self._name), ("res_id", "=", self.id), ('reclaim_state', '=', False)])
|
||||
if workflow_record_id:
|
||||
if workflow_record_id.approve_state == 'end':
|
||||
record.is_done = True
|
||||
|
||||
def _compute_is_confirm(self):
|
||||
for record in self:
|
||||
|
||||
Reference in New Issue
Block a user