Commit fc199836 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! accounting: fix workflow script after ERP5 workflow migration

parent 3a5100a5
......@@ -3,7 +3,7 @@ from Products.ERP5Type.Message import translateString
internal_invoice = state_change['object']
old_state = state_change['old_state']
if old_state.getId() == 'draft':
if old_state.getReference() == 'draft':
if internal_invoice.InternalInvoiceTransaction_getAuthenticatedUserSection() == internal_invoice.getDestinationSection():
raise ValidationFailed(translateString("Your entity should not be destination."))
......
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