Skip to content

Commit

Permalink
[NEW] force workflow transtition
Browse files Browse the repository at this point in the history
  • Loading branch information
mileo committed Jul 29, 2024
1 parent 9be188d commit 64029b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions l10n_br_fiscal/models/document_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def _avaliable_transition(self, old_state, new_state):
:return:
"""
self.ensure_one()
if self.env.context.get("force_fiscal_workflow_transition", False):
return True
if self.document_electronic:
return (old_state, new_state) in WORKFLOW_EDOC
else:
Expand Down

0 comments on commit 64029b2

Please sign in to comment.