Commit 6ae3b946 authored by Sebastien Robin's avatar Sebastien Robin

do not convert date to string otherwise it failed with new date in utc

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18024 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 454e0fa4
...@@ -92,7 +92,7 @@ if site is None:\n ...@@ -92,7 +92,7 @@ if site is None:\n
#context.log(\'Baobab_checkCounterDateOpen\', \'get site for vault %s\' %(site))\n #context.log(\'Baobab_checkCounterDateOpen\', \'get site for vault %s\' %(site))\n
site = context.Baobab_getVaultSite(site)\n site = context.Baobab_getVaultSite(site)\n
\n \n
if context.portal_catalog.countResults(portal_type=\'Counter Date\', start_date=str(date), site_id=site.getId(), simulation_state="open")[0][0] == 0:\n if context.portal_catalog.countResults(portal_type=\'Counter Date\', start_date=date, site_id=site.getId(), simulation_state="open")[0][0] == 0:\n
msg = Message(domain = "ui", message="Transaction not in the good counter date")\n msg = Message(domain = "ui", message="Transaction not in the good counter date")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
</string> </value> </string> </value>
...@@ -162,7 +162,6 @@ if context.portal_catalog.countResults(portal_type=\'Counter Date\', start_date= ...@@ -162,7 +162,6 @@ if context.portal_catalog.countResults(portal_type=\'Counter Date\', start_date=
<string>site_list</string> <string>site_list</string>
<string>len</string> <string>len</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>str</string>
<string>msg</string> <string>msg</string>
</tuple> </tuple>
</value> </value>
......
381 385
\ 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