Commit 544441e6 authored by Jérome Perrin's avatar Jérome Perrin

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 aaf4a10e
......@@ -28,7 +28,7 @@ transaction.Base_checkConsistency()
skip_period_validation = state_change['kwargs'].get(
'skip_period_validation', 0)
transition = state_change['transition']
if transition.id in ('plan_action', 'confirm_action') :
if transition.getReference() in ('plan_action', 'confirm_action') :
skip_period_validation = 1
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