Commit d96e0444 authored by Aurel's avatar Aurel

xml changes + script fix

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11118 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b9bb8861
......@@ -542,6 +542,9 @@
<name>Manage Groups</name>
<role>Manager</role>
</permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'>
<name>Manage Transient Object Container</name>
<role>Manager</role>
......
......@@ -527,6 +527,9 @@
<permission type='tuple'>
<name>Manage Groups</name>
</permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'>
<name>Manage Transient Object Container</name>
<role>Manager</role>
......
......@@ -543,6 +543,9 @@
<name>Manage Groups</name>
<role>Manager</role>
</permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'>
<name>Manage Transient Object Container</name>
<role>Manager</role>
......
......@@ -542,6 +542,9 @@
<name>Manage Groups</name>
<role>Manager</role>
</permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'>
<name>Manage Transient Object Container</name>
<role>Manager</role>
......
......@@ -543,6 +543,9 @@
<name>Manage Groups</name>
<role>Manager</role>
</permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'>
<name>Manage Transient Object Container</name>
<role>Manager</role>
......
......@@ -543,6 +543,9 @@
<name>Manage Groups</name>
<role>Manager</role>
</permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'>
<name>Manage Transient Object Container</name>
<role>Manager</role>
......
......@@ -546,6 +546,9 @@
<name>Manage Groups</name>
<role>Manager</role>
</permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'>
<name>Manage Transient Object Container</name>
<role>Manager</role>
......
......@@ -391,6 +391,9 @@
<permission type='list'>
<name>Manage Groups</name>
</permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='list'>
<name>Manage Transient Object Container</name>
</permission>
......
......@@ -546,6 +546,9 @@
<name>Manage Groups</name>
<role>Manager</role>
</permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'>
<name>Manage Transient Object Container</name>
<role>Manager</role>
......
......@@ -72,6 +72,9 @@
# get the list of movement we need to create\n
\n
portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n
\n
# First call the first scripts wich check many things\n
error_value = context.CheckDelivery_generateCheckDetailInputDialog(\n
listbox=listbox,batch_mode=1,**kw)\n
......@@ -144,11 +147,11 @@ for line in listbox:\n
\n
\n
request = context.REQUEST\n
message = "No%%20Lines%%20Created"\n
message = N_("No+Lines+Created.")\n
if number_of_line_created>0:\n
message = "Lines%%20Created"\n
message = N_("Lines+Created.")\n
redirect_url = \'%s/view?%s\' % ( context.absolute_url()\n
, \'portal_status_message=%s%%20Created\' % message\n
, \'portal_status_message=%s\' % message\n
)\n
request[ \'RESPONSE\' ].redirect( redirect_url )\n
......@@ -217,9 +220,11 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<tuple>
<string>listbox</string>
<string>kw</string>
<string>_apply_</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>N_</string>
<string>_apply_</string>
<string>error_value</string>
<string>request</string>
<string>None</string>
......
......@@ -452,7 +452,7 @@
</item>
<item>
<key> <string>list_action</string> </key>
<value> <string>StopPaymentModule_viewStopPaymentDeliveryList</string> </value>
<value> <string>StopPaymentModule_viewStopPaymentList</string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
......
......@@ -153,6 +153,8 @@ elif len(result) == 1:\n
msg = Message(domain=\'ui\', message=\'The check has been stopped.\')\n
elif state == \'delivered\':\n
msg = Message(domain=\'ui\', message=\'The check has already been cashed.\')\n
elif state == \'stopped\':\n
msg = Message(domain=\'ui\', message=\'The check is stopped.\')\n
raise ValidationFailed, (msg,)\n
else:\n
msg = Message(domain=\'ui\', message=\'Duplicate checks for the same check number\')\n
......
......@@ -114,7 +114,7 @@ for line in line_list:\n
reference_range_max = str(int(float(reference_range_min)) + int(check_quantity)-1)\n
item.setReferenceRangeMax(reference_range_max)\n
item.setTitle(\'%s - %s\' % (reference_range_min, reference_range_max))\n
reference_range_min = reference_range_max\n
reference_range_min = str(int(reference_range_max) + 1)\n
item.setCheckAmount(check_amount)\n
else:\n
item.setReference(reference_range_min)\n
......
......@@ -34,7 +34,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Canceled</string> </value>
<value> <string>Cancelled</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
......@@ -42,6 +42,12 @@
<tuple/>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
......
32
\ No newline at end of file
39
\ 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