Commit 66008276 authored by Sebastien Robin's avatar Sebastien Robin

fix variable name in openAllCounters before script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11580 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 60b5ed87
......@@ -73,8 +73,8 @@ from Products.ERP5Type.Message import Message\n
counter_date = state_change[\'object\']\n
\n
# First, make sure there is not any counter date open for this site\n
site_uid = context.getSiteUid()\n
counter_date_list = [x.getObject() for x in context.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\n
site_uid = counter_date.getSiteUid()\n
counter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\n
for other_counter in counter_date_list:\n
if other_counter.getUid()!=counter_date.getUid():\n
msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n
......@@ -155,7 +155,6 @@ if listbox is not None:\n
<string>_getitem_</string>
<string>counter_date</string>
<string>_getattr_</string>
<string>context</string>
<string>site_uid</string>
<string>append</string>
<string>$append0</string>
......@@ -170,6 +169,7 @@ if listbox is not None:\n
<string>DateTime</string>
<string>now</string>
<string>line</string>
<string>context</string>
<string>counter</string>
</tuple>
</value>
......
74
\ No newline at end of file
76
\ 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