Commit 74d8b5f7 authored by Jérome Perrin's avatar Jérome Perrin

accounting rename InternalInvoice_getAuthenticatedUserSection

to InternalInvoiceTransaction_getAuthenticatedUserSection.

It was a violation of our naming conventions.
parent cc140105
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>InternalInvoice_getAuthenticatedUserSection</string> </value> <value> <string>InternalInvoiceTransaction_getAuthenticatedUserSection</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -4,7 +4,7 @@ from Products.ERP5Type.Message import translateString ...@@ -4,7 +4,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.getId() == 'draft':
if internal_invoice.InternalInvoice_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."))
return state_change.getPortal().portal_workflow.accounting_workflow.scripts[script.getId()](state_change) return state_change.getPortal().portal_workflow.accounting_workflow.scripts[script.getId()](state_change)
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>object/InternalInvoice_getAuthenticatedUserSection</string> </value> <value> <string>object/InternalInvoiceTransaction_getAuthenticatedUserSection</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>object/InternalInvoice_getAuthenticatedUserSection</string> </value> <value> <string>object/InternalInvoiceTransaction_getAuthenticatedUserSection</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
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