Commit a3f01a7a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! accounting: fix workflow script after ERP5 workflow migration

parent 57f550ac
Pipeline #30243 failed with stage
in 0 seconds
...@@ -3,7 +3,7 @@ from Products.ERP5Type.Message import translateString ...@@ -3,7 +3,7 @@ from Products.ERP5Type.Message import translateString
internal_invoice = state_change['object'] internal_invoice = state_change['object']
old_state = state_change['old_state'] old_state = state_change['old_state']
if old_state.getId() == 'draft': if old_state.getReference() == 'draft':
if internal_invoice.InternalInvoiceTransaction_getAuthenticatedUserSection() == internal_invoice.getDestinationSection(): if internal_invoice.InternalInvoiceTransaction_getAuthenticatedUserSection() == internal_invoice.getDestinationSection():
raise ValidationFailed(translateString("Your entity should not be destination.")) 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