Commit 2b03f3be authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

accounting: fix workflow script after ERP5 workflow migration

With ERP5 workflows, transition id is different (it has a prefix),
we must use transition reference
parent cf827696
...@@ -28,7 +28,7 @@ transaction.Base_checkConsistency() ...@@ -28,7 +28,7 @@ transaction.Base_checkConsistency()
skip_period_validation = state_change['kwargs'].get( skip_period_validation = state_change['kwargs'].get(
'skip_period_validation', 0) 'skip_period_validation', 0)
transition = state_change['transition'] transition = state_change['transition']
if transition.id in ('plan_action', 'confirm_action') : if transition.getReference() in ('plan_action', 'confirm_action') :
skip_period_validation = 1 skip_period_validation = 1
source_section = transaction.getSourceSectionValue( source_section = transaction.getSourceSectionValue(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment