Commit 9d041371 authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-05-28 mame

*raise NotImplementedError when quantity is not defined on  a line

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27240 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 75d80edb
......@@ -74,8 +74,8 @@ for line in kw.get(\'listbox\'):\n
if line.has_key(\'listbox_key\') and line[\'quantity\'] in (\'\',None):\n
msg = translateString("Please Define Quantity for Item Defined On Line ${line_id}",\n
mapping={\'line_id\': line[\'listbox_key\']})\n
return context.Base_redirect(form_id, keep_items=dict(\n
portal_status_message=msg))\n
raise NotImplementedError(\n
msg)\n
\n
if line.has_key(\'listbox_key\') and (line[\'title\'] or line[\'reference\'] not in (\'\', None)):\n
module = context.getDefaultModule(type)\n
......@@ -176,7 +176,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<string>_getitem_</string>
<string>None</string>
<string>msg</string>
<string>dict</string>
<string>NotImplementedError</string>
<string>module</string>
<string>item</string>
<string>cell_found</string>
......@@ -184,6 +184,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<string>movement_to_update</string>
<string>variation_category_list</string>
<string>variation</string>
<string>dict</string>
</tuple>
</value>
</item>
......
......@@ -232,7 +232,7 @@
</item>
<item>
<key> <string>required</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
143
\ No newline at end of file
145
\ 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