Commit 13ad68d3 authored by Vincent Pelletier's avatar Vincent Pelletier

getSource must be used, not getDestination, since source is set by the...

getSource must be used, not getDestination, since source is set by the MutilatedBanknote_init script.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13105 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3fc24913
......@@ -76,7 +76,7 @@ from Products.ERP5Type.Message import Message\n
ob = state_change[\'object\']\n
state = ob.getSimulationState()\n
\n
if not ob.Baobab_checkCounterDateOpen(site=ob.getDestination(), date=ob.getStartDate()):\n
if not ob.Baobab_checkCounterDateOpen(site=ob.getSource(), date=ob.getStartDate()):\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
\n
......
......@@ -72,7 +72,7 @@
from Products.ERP5Type.Message import Message\n
\n
ob = state_change[\'object\']\n
if not ob.Baobab_checkCounterDateOpen(site=ob.getDestination(), date=ob.getStartDate()):\n
if not ob.Baobab_checkCounterDateOpen(site=ob.getSource(), date=ob.getStartDate()):\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
\n
......
......@@ -73,7 +73,7 @@ from Products.ERP5Type.Message import Message\n
\n
ob = state_change[\'object\']\n
\n
if not ob.Baobab_checkCounterDateOpen(site=ob.getDestination(), date=ob.getStartDate()):\n
if not ob.Baobab_checkCounterDateOpen(site=ob.getSource(), date=ob.getStartDate()):\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
\n
......
200
\ No newline at end of file
202
\ 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