Commit a786e0f5 authored by Vincent Pelletier's avatar Vincent Pelletier

Rename "transaction" to "ob". This code was pasted without adaptation from...

Rename "transaction" to "ob". This code was pasted without adaptation from other scripts where the first name is used.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13030 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c7113414
...@@ -76,7 +76,7 @@ from Products.ERP5Type.Message import Message\n ...@@ -76,7 +76,7 @@ from Products.ERP5Type.Message import Message\n
ob = state_change[\'object\']\n ob = state_change[\'object\']\n
state = ob.getSimulationState()\n state = ob.getSimulationState()\n
\n \n
if not transaction.Baobab_checkCounterDateOpen():\n if not ob.Baobab_checkCounterDateOpen():\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
\n \n
...@@ -151,7 +151,6 @@ elif state == "ordered":\n ...@@ -151,7 +151,6 @@ elif state == "ordered":\n
<string>ob</string> <string>ob</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>state</string> <string>state</string>
<string>transaction</string>
<string>msg</string> <string>msg</string>
<string>len</string> <string>len</string>
</tuple> </tuple>
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
from Products.ERP5Type.Message import Message\n from Products.ERP5Type.Message import Message\n
\n \n
ob = state_change[\'object\']\n ob = state_change[\'object\']\n
if not transaction.Baobab_checkCounterDateOpen():\n if not ob.Baobab_checkCounterDateOpen():\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
\n \n
...@@ -130,7 +130,6 @@ if len(ob.objectValues(portal_type="Exchanged Mutilated Banknote Line")) != 0:\n ...@@ -130,7 +130,6 @@ if len(ob.objectValues(portal_type="Exchanged Mutilated Banknote Line")) != 0:\n
<string>_getitem_</string> <string>_getitem_</string>
<string>ob</string> <string>ob</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>transaction</string>
<string>msg</string> <string>msg</string>
<string>len</string> <string>len</string>
</tuple> </tuple>
......
189 195
\ No newline at end of file \ No newline at end of file
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