Skip to content

Commit

Permalink
FIX error on check worklow
Browse files Browse the repository at this point in the history
  • Loading branch information
mboscolo committed Jun 25, 2024
1 parent 725bd31 commit 57dcbb2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions plm/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,18 +664,12 @@ def _checkWorkflow(attachment_ids):
if ir_attachment_id.is3D():
for lay_attachment_id in ir_attachment_id.getRelatedLyTree(ir_attachment_id.id):
if lay_attachment_id not in docIDs:
self._checkWorkflow(attachment.browse(lay_attachment_id),
to_state,
allowed_state
)
_checkWorkflow(attachment.browse(lay_attachment_id))
#
raw_doc_ids = ir_attachment_id.getRelatedRfTree(ir_attachment_id.id,
recursion=True)
#
self._checkWorkflow(attachment.browse(raw_doc_ids),
to_state,
allowed_state
)
_checkWorkflow(attachment.browse(raw_doc_ids))
_checkWorkflow(linkeddocuments)
return list(set(docIDs)), docInError

Expand Down

0 comments on commit 57dcbb2

Please sign in to comment.