Commit 1539cf0b authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-01-21 mame

* modified script to avoid "You selected an item that was not in list" message when there is no resource defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25242 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2219c593
......@@ -63,8 +63,9 @@ result = getattr(context.portal_categories[\'quantity_unit\'], \n
\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(\n
base=0, local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')\n
\n
\n
pr_title= request.form.get("field_listbox_title_%s"%context.getUid())\n
if pr_title not in (\'\',None):\n
if pr_title not in (\'\',None) and context.getResourceValue() is not None:\n
q_list = [(x.getLogicalPath(), x.getCategoryRelativeUrl(base=0)) \n
for x in context.getResourceValue().getQuantityUnitValueList()]\n
result=[]\n
......
......@@ -62,7 +62,7 @@
the total price and the stock corresponding to the \n
product\n
"""\n
result = [x.getObject() for x in context.SaleOrder_getFastInputSaleOrderLineList(lines_num=12, **kw)]\n
result = [x.getObject() for x in context.SaleOrder_getFastInputSaleOrderLineList(lines_num=10, **kw)]\n
\n
request= context.REQUEST\n
\n
......
573
\ No newline at end of file
574
\ 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