Commit bad43047 authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-01-21 mame

* modified fast input to only display of quantity unit of resource entered in the fast input

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25235 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 88d79565
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>"""\n
This script returns only the quantity unit of the resource \n
entered on the fast input\n
"""\n
request = context.REQUEST\n
result = getattr(context.portal_categories[\'quantity_unit\'], \n
context.portal_preferences.getPreference(\n
\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(\n
base=0, local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')\n
\n
pr_title= request.form.get("field_listbox_title_%s"%context.getUid())\n
if pr_title not in (\'\',None):\n
q_list = [(x.getLogicalPath(), x.getCategoryRelativeUrl(base=0)) \n
for x in context.getResourceValue().getQuantityUnitValueList()]\n
result=[]\n
result = [q_list[0]]\n
return result\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>request</string>
<string>getattr</string>
<string>_getitem_</string>
<string>result</string>
<string>pr_title</string>
<string>None</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>x</string>
<string>q_list</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SaleOrderLine_getQuantityUnitItemList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -61,31 +61,52 @@ ...@@ -61,31 +61,52 @@
"""\n """\n
from Products.ERP5Type.Document import newTempBase\n from Products.ERP5Type.Document import newTempBase\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
getobject = portal.portal_catalog.getobject\n
request = context.REQUEST\n request = context.REQUEST\n
listbox = getattr(request, \'listbox\', None) \n sale_order = context\n
\n
result = []\n result = []\n
line_list = context.contentValues(portal_type=\'Sale Order Line\')\n line_list = context.contentValues(portal_type=\'Sale Order Line\')\n
source_section = context.getSourceSectionValue()\n source_section = context.getSourceSectionValue()\n
\n
len_line_list = len(line_list)\n len_line_list = len(line_list)\n
if len(line_list)!=0:\n if len_line_list!=0:\n
for line in line_list:\n for line in line_list:\n
obj = newTempBase(portal, id="tmp_item_%s" % line.getId(), uid="tmp_item_%s" % line.getId()) \n obj=sale_order.newContent(portal_type=\'Sale Order Line\',\n
id=line.getId(),\n
uid="new_%s" % line.getId(),\n
temp_object=1,\n
is_indexable=0,)\n
#obj = newTempBase(portal, id="new_%s" % line.getId(), uid="new_%s" % line.getId()) \n
obj.edit(title=line.getResourceTitle(),\n obj.edit(title=line.getResourceTitle(),\n
reference=line.getResourceReference(),\n
quantity=line.getQuantity(),\n quantity=line.getQuantity(),\n
quantity_unit=line.getQuantityUnit(),\n quantity_unit=line.getQuantityUnitList(),\n
total_price=line.getTotalPrice(),\n total_price=line.getTotalPrice(),\n
getAvailableInventory=line.getResourceValue().getAvailableInventory(\n getAvailableInventory=line.getResourceValue().getAvailableInventory(\n
node_uid=source_section.getUid()),\n section_uid=source_section.getUid(),\n
variation_text=line.getVariationText()),\n
getCurrentInventory=line.getResourceValue().getCurrentInventory(\n getCurrentInventory=line.getResourceValue().getCurrentInventory(\n
node_uid=source_section.getUid()),\n section_uid=source_section.getUid(),\n
variation_text=line.getVariationText()),\n
inventory=line.getResourceValue().getInventory(\n inventory=line.getResourceValue().getInventory(\n
node_uid=source_section.getUid()))\n section_uid=source_section.getUid(),\n
variation_text=line.getVariationText()))\n
result.append(obj)\n result.append(obj)\n
\n
for i in range(len_line_list+1,lines_num+1):\n for i in range(len_line_list+1,lines_num+1):\n
obj = newTempBase(portal, id="tmp_item_%s" % i, uid="tmp_item_%s" % i)\n resource_relative_url = getattr(request,"field_listbox_resource_relative_url_new_%s"%i,None)\n
obj=sale_order.newContent(portal_type=\'Sale Order Line\',\n
id=i,\n
uid="new_%s" % i,\n
temp_object=1,\n
getAvailableInventory=0,\n
getCurrentInventory=0,\n
is_indexable=0,)\n
#obj = newTempBase(portal,id="new_%s" % i, uid="new_%s" % i)\n
if resource_relative_url not in (\'\',None):\n
resource = context.restrictedTraverse(resource_relative_url) \n
obj.setResourceValue(resource)\n
result.append(obj)\n result.append(obj)\n
\n
return result\n return result\n
</string> </value> </string> </value>
</item> </item>
...@@ -130,10 +151,9 @@ return result\n ...@@ -130,10 +151,9 @@ return result\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
<string>getobject</string>
<string>request</string> <string>request</string>
<string>getattr</string> <string>sale_order</string>
<string>None</string>
<string>listbox</string>
<string>result</string> <string>result</string>
<string>line_list</string> <string>line_list</string>
<string>source_section</string> <string>source_section</string>
...@@ -144,6 +164,10 @@ return result\n ...@@ -144,6 +164,10 @@ return result\n
<string>obj</string> <string>obj</string>
<string>range</string> <string>range</string>
<string>i</string> <string>i</string>
<string>getattr</string>
<string>None</string>
<string>resource_relative_url</string>
<string>resource</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
input information.It should take into account any sale order line \n input information.It should take into account any sale order line \n
which were already created so that they are not duplicated.\n which were already created so that they are not duplicated.\n
"""\n """\n
\n from Products.ERP5Type.Message import translateString\n
result_list = []\n result_list = []\n
sale_order_line_list = context.contentValues(portal_type=\'Sale Order Line\')\n sale_order_line_list = context.contentValues(portal_type=\'Sale Order Line\')\n
if sale_order_line_list!=[]:\n if sale_order_line_list!=[]:\n
...@@ -66,12 +66,13 @@ if sale_order_line_list!=[]:\n ...@@ -66,12 +66,13 @@ if sale_order_line_list!=[]:\n
for line in listbox:\n for line in listbox:\n
#for each line in listbox if line has a reference defined, search \n #for each line in listbox if line has a reference defined, search \n
#for the product whose reference has been entered\n #for the product whose reference has been entered\n
if line.has_key(\'listbox_key\') and line[\'reference\'] not in (\'\', None):\n if line.has_key(\'listbox_key\') and line[\'title\'] not in (\'\', None):\n
line_id = line[\'listbox_key\'].split(\'/erp5/tmp_item_\')[1]\n line_id = line[\'listbox_key\']\n
product_list = [x.getObject() for x in context.portal_catalog(\n product = context.portal_catalog.getResultValue(\n
portal_type=\'Product\',\n portal_type=[\'Product\',\'Service\'],\n
reference=line[\'reference\'])]\n title=line[\'title\'],\n
product = product_list[0]\n reference=line[\'reference\'])\n
\n
#for each sale order line already added,\n #for each sale order line already added,\n
#if the line\'s id is the same as the sale order line, update it\n #if the line\'s id is the same as the sale order line, update it\n
for sale_order_line in sale_order_line_list:\n for sale_order_line in sale_order_line_list:\n
...@@ -83,26 +84,61 @@ for line in listbox:\n ...@@ -83,26 +84,61 @@ for line in listbox:\n
quantity = line["quantity"],\n quantity = line["quantity"],\n
quantity_unit = product.getQuantityUnit(),)\n quantity_unit = product.getQuantityUnit(),)\n
sale_order_line.setResourceValue(product)\n sale_order_line.setResourceValue(product)\n
if line["variation_category_list"]!=\'\':\n
sale_order_line.setVariationCategoryList([\'variation/%s\'%line["variation_category_list"]])\n
base_id = \'movement\'\n
cell_key_list = list(sale_order_line.getCellKeyList(base_id=base_id))\n
cell_key_list.sort()\n
price = line[\'total_price\']/line[\'quantity\']\n
quantity = line[\'quantity\']\n
for cell_key in cell_key_list:\n
cell = sale_order_line.newCell(base_id=base_id, \\\n
portal_type=\'Sale Order Cell\', *cell_key)\n
cell.edit(mapped_value_property_list=[\'price\',\'quantity\'],\n
price=price, quantity=quantity,\n
predicate_category_list=cell_key,\n
variation_category_list=cell_key)\n
price += 1\n
quantity += 1\n
result_list.append(sale_order_line)\n result_list.append(sale_order_line)\n
else:\n else:\n
# if there was no sale order line already defined\n # if there was no sale order line already defined\n
# for the sale order, add a new sale order line\n # for the sale order, add a new sale order line\n
context.log("it goes in here second")\n
if len(sale_order_line_list)==0 or line_id not in sale_order_line_id_list:\n if len(sale_order_line_list)==0 or line_id not in sale_order_line_id_list:\n
sale_order_line= context.newContent(\n sale_order_line= context.newContent(\n
portal_type=\'Sale Order Line\',)\n portal_type=\'Sale Order Line\',)\n
sale_order_line.setResourceValue(product)\n
\n
sale_order_line.edit(\n sale_order_line.edit(\n
start_date=context.getStartDate(),\n start_date=context.getStartDate(),\n
stop_date=context.getStopDate(),\n stop_date=context.getStopDate(),\n
resource_title=product.getTitle(),\n resource_title=product.getTitle(),\n
price_currency = context.getPriceCurrency(),\n price_currency = context.getPriceCurrency(),\n
quantity = line["quantity"],\n quantity = line["quantity"],\n
quantity_unit = product.getQuantityUnit(),)\n )\n
sale_order_line.setResourceValue(product)\n if line["variation_category_list"]!=\'\':\n
sale_order_line.setVariationCategoryList([\'variation/%s\'%line["variation_category_list"]])\n
base_id = \'movement\'\n
cell_key_list = list(sale_order_line.getCellKeyList(base_id=base_id))\n
cell_key_list.sort()\n
price = line[\'total_price\']/line[\'quantity\']\n
quantity = line[\'quantity\']\n
for cell_key in cell_key_list:\n
cell = sale_order_line.newCell(base_id=base_id, \\\n
portal_type=\'Sale Order Cell\', *cell_key)\n
cell.edit(mapped_value_property_list=[\'price\',\'quantity\'],\n
price=price, quantity=quantity,\n
predicate_category_list=cell_key,\n
variation_category_list=cell_key)\n
price += 1\n
quantity += 1\n
result_list.append(sale_order_line)\n result_list.append(sale_order_line)\n
\n \n
\n
#return to the feature module\n #return to the feature module\n
context.REQUEST.response.redirect(\n return context.Base_redirect(form_id, keep_items=dict(\n
\'%s/view?portal_status_message=%s\' % (context.absolute_url(), \'Sale Order Lines created.\'.replace(\' \', \'%20\')))\n portal_status_message=translateString(\'Sale Order Lines Created.\')))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -113,7 +149,7 @@ context.REQUEST.response.redirect(\n ...@@ -113,7 +149,7 @@ context.REQUEST.response.redirect(\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>listbox=None, **kw</string> </value> <value> <string>listbox=[], form_id=\'view\',**kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -133,14 +169,17 @@ context.REQUEST.response.redirect(\n ...@@ -133,14 +169,17 @@ context.REQUEST.response.redirect(\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>1</int> </value> <value> <int>2</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>listbox</string> <string>listbox</string>
<string>form_id</string>
<string>kw</string> <string>kw</string>
<string>Products.ERP5Type.Message</string>
<string>translateString</string>
<string>result_list</string> <string>result_list</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
...@@ -154,10 +193,19 @@ context.REQUEST.response.redirect(\n ...@@ -154,10 +193,19 @@ context.REQUEST.response.redirect(\n
<string>_getitem_</string> <string>_getitem_</string>
<string>None</string> <string>None</string>
<string>line_id</string> <string>line_id</string>
<string>product_list</string>
<string>product</string> <string>product</string>
<string>sale_order_line</string> <string>sale_order_line</string>
<string>base_id</string>
<string>list</string>
<string>cell_key_list</string>
<string>price</string>
<string>quantity</string>
<string>cell_key</string>
<string>_apply_</string>
<string>cell</string>
<string>_inplacevar_</string>
<string>len</string> <string>len</string>
<string>dict</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -170,7 +218,8 @@ context.REQUEST.response.redirect(\n ...@@ -170,7 +218,8 @@ context.REQUEST.response.redirect(\n
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple> <tuple>
<none/> <list/>
<string>view</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -62,38 +62,71 @@ ...@@ -62,38 +62,71 @@
the total price and the stock corresponding to the \n the total price and the stock corresponding to the \n
product\n product\n
"""\n """\n
request = context.REQUEST\n result = [x.getObject() for x in context.SaleOrder_getFastInputSaleOrderLineList(lines_num=12, **kw)]\n
\n
request= context.REQUEST\n
\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
Base_translateString = portal.Base_translateString\n Base_translateString = portal.Base_translateString\n
total_price = 0.0\n total_price = 0.0\n
portal = context.getPortalObject()\n
for line in listbox:\n for line in listbox:\n
if line.has_key(\'listbox_key\') and (line[\'title\'] or line[\'reference\'] not in (\'\', None)):\n if line.has_key(\'listbox_key\') and (line[\'title\'] or line[\'reference\'] not in (\'\', None)):\n
product_list = context.portal_catalog(portal_type=\'Product\',\n product = context.portal_catalog.getResultValue(\n
portal_type=[\'Product\',\'Service\'],\n
title=line[\'title\'],\n title=line[\'title\'],\n
reference=line[\'reference\'])\n reference=line[\'reference\'])\n
product = product_list[0]\n line_id = line[\'listbox_key\']\n
if line[\'quantity\'] <= product.getAvailableInventory(\n cell = result[int(line_id)-1]\n
node_uid=context.getSourceSectionValue().getUid()):\n cell.setResourceValue(product) \n
line_id = line[\'listbox_key\'].split(\'/erp5/\')[1]\n line["quantity_unit"] = cell.getQuantityUnit()\n
line["total_price"] = line[\'quantity\'] * product.getSaleSupplyLineBasePrice()\n line["resource_relative_url"] = cell.getResourceRelativeUrl()\n
line["quantity_unit"] = product.getQuantityUnit()\n request.form["field_listbox_resource_relative_url_new_%s"%line_id]=cell.getResourceRelativeUrl()\n
request.form["field_listbox_reference_%s"%line_id] = product.getReference()\n kw["field_listbox_resource_relative_url_new_%s"%line_id]=cell.getResourceRelativeUrl()\n
request.form["field_listbox_title_%s"%line_id] = product.getTitle()\n request.set("field_listbox_resource_relative_url_new_%s"%line_id,cell.getResourceRelativeUrl())\n
request.form["field_listbox_total_price_%s"%line_id] = line[\'quantity\'] * product.getPrice()\n request.form["field_listbox_reference_new_%s"%line_id] = product.getReference() or \'\'\n
request.form["field_listbox_quantity_unit_%s"%line_id] = product.getQuantityUnit()\n request.form["field_listbox_title_new_%s"%line_id] = product.getTitle()\n
request.form["field_listbox_getAvailableInventory_%s"%line_id] = product.getAvailableInventory(\n request.form["field_listbox_quantity_unit_new_%s"%line_id] = cell.getQuantityUnit()\n
node_uid=context.getSourceSectionValue().getUid())\n \n
request.form[\'field_listbox_inventory_%s\'%line_id] = product.getInventory(\n if line["variation_category_list"]!=\'\' and product.getPortalType()==\'Product\' and line[\'quantity\'] <= product.getAvailableInventory(\n
node_uid=context.getSourceSectionValue().getUid())\n section_uid=context.getSourceSectionValue().getUid(),\n
request.form["field_listbox_getCurrentInventory_%s"%line_id] = product.getCurrentInventory(\n variation_text=\'variation/%s\'%line["variation_category_list"]):\n
node_uid=context.getSourceSectionValue().getUid())\n supply_cell_list = product.default_ssl.contentValues(portal_type=\'Sale Supply Cell\')\n
request.form["field_listbox_variation_category_item_list_%s"%line_id] =\\\n for supply_cell in supply_cell_list:\n
[x[0] for x in product.getVariationCategoryItemList()]\n if supply_cell.getVariationCategoryList()[0]==\'variation/%s\'%line["variation_category_list"]:\n
line["total_price"] = line[\'quantity\'] * supply_cell.getBasePrice()\n
request.form["field_listbox_total_price_new_%s"%line_id] = line[\'total_price\'] \n
request.form["field_listbox_getAvailableInventory_new_%s"%line_id] = product.getAvailableInventory(\n
section_uid=context.getSourceSectionValue().getUid(),\n
variation_text=\'variation/%s\'%line["variation_category_list"])\n
request.form[\'field_listbox_inventory_new_%s\'%line_id] = product.getInventory(\n
section_uid=context.getSourceSectionValue().getUid(),\n
variation_text=\'variation/%s\'%line["variation_category_list"])\n
request.form["field_listbox_getCurrentInventory_new_%s"%line_id] = product.getCurrentInventory(\n
section_uid=context.getSourceSectionValue().getUid(),\n
variation_text=\'variation/%s\'%line["variation_category_list"])\n
total_price +=line[\'total_price\']\n
request.form["field_my_total_price"] = total_price\n
\n
elif line["variation_category_list"]==\'\' and product.getPortalType()==\'Product\' and line[\'quantity\'] <= product.getAvailableInventory(\n
section_uid=context.getSourceSectionValue().getUid()):\n
line["total_price"] = line[\'quantity\'] * cell.getPrice()\n
request.form["field_listbox_total_price_new_%s"%line_id] = line[\'total_price\']\n
request.form["field_listbox_getAvailableInventory_new_%s"%line_id] = product.getAvailableInventory(\n
section_uid=context.getSourceSectionValue().getUid())\n
request.form[\'field_listbox_inventory_new_%s\'%line_id] = product.getInventory(\n
section_uid=context.getSourceSectionValue().getUid())\n
request.form["field_listbox_getCurrentInventory_new_%s"%line_id] = product.getCurrentInventory(\n
section_uid=context.getSourceSectionValue().getUid(),)\n
total_price +=line[\'total_price\']\n
request.form["field_my_total_price"] = total_price\n
elif product.getPortalType()==\'Service\':\n
line["total_price"] = line[\'quantity\'] * cell.getPrice()\n
request.form["field_listbox_total_price_new_%s"%line_id] = line[\'total_price\']\n
total_price +=line[\'total_price\']\n total_price +=line[\'total_price\']\n
request.form["field_my_total_price"] = total_price\n request.form["field_my_total_price"] = total_price\n
else:\n else:\n
request.set(\'portal_status_message\', Base_translateString(\'Quantity Asked Not Available In Inventory\')) \n request.set(\'portal_status_message\', \n
Base_translateString(\'Quantity Asked For Line %s Not Available In Inventory\'%line[\'listbox_key\'])) \n
\n \n
context.Base_updateDialogForm(listbox=listbox,update=1,kw=kw)\n context.Base_updateDialogForm(listbox=listbox,update=1,kw=kw)\n
return context.SaleOrder_viewSaleOrderFastInputDialog(listbox=listbox,**kw)\n return context.SaleOrder_viewSaleOrderFastInputDialog(listbox=listbox,**kw)\n
...@@ -109,7 +142,7 @@ return context.SaleOrder_viewSaleOrderFastInputDialog(listbox=listbox,**kw)\n ...@@ -109,7 +142,7 @@ return context.SaleOrder_viewSaleOrderFastInputDialog(listbox=listbox,**kw)\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>listbox=None,**kw</string> </value> <value> <string>listbox=[],**kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -137,25 +170,29 @@ return context.SaleOrder_viewSaleOrderFastInputDialog(listbox=listbox,**kw)\n ...@@ -137,25 +170,29 @@ return context.SaleOrder_viewSaleOrderFastInputDialog(listbox=listbox,**kw)\n
<tuple> <tuple>
<string>listbox</string> <string>listbox</string>
<string>kw</string> <string>kw</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>_apply_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>x</string>
<string>result</string>
<string>request</string> <string>request</string>
<string>portal</string> <string>portal</string>
<string>Base_translateString</string> <string>Base_translateString</string>
<string>total_price</string> <string>total_price</string>
<string>_getiter_</string>
<string>line</string> <string>line</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>None</string> <string>None</string>
<string>product_list</string>
<string>product</string> <string>product</string>
<string>line_id</string> <string>line_id</string>
<string>int</string>
<string>cell</string>
<string>_write_</string> <string>_write_</string>
<string>append</string> <string>supply_cell_list</string>
<string>$append0</string> <string>supply_cell</string>
<string>x</string>
<string>_inplacevar_</string> <string>_inplacevar_</string>
<string>_apply_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -168,7 +205,7 @@ return context.SaleOrder_viewSaleOrderFastInputDialog(listbox=listbox,**kw)\n ...@@ -168,7 +205,7 @@ return context.SaleOrder_viewSaleOrderFastInputDialog(listbox=listbox,**kw)\n
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple> <tuple>
<none/> <list/>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -96,12 +96,13 @@ ...@@ -96,12 +96,13 @@
<string>listbox_reference</string> <string>listbox_reference</string>
<string>listbox_total_price</string> <string>listbox_total_price</string>
<string>listbox_total_quantity</string> <string>listbox_total_quantity</string>
<string>listbox_getAvailableInventory</string>
<string>listbox_getCurrentInventory</string>
<string>listbox_inventory</string> <string>listbox_inventory</string>
<string>listbox_variation_category_item_list</string>
<string>listbox_title</string> <string>listbox_title</string>
<string>listbox_variation_category_list</string>
<string>listbox_getCurrentInventory</string>
<string>listbox_getAvailableInventory</string>
<string>listbox_quantity_unit</string> <string>listbox_quantity_unit</string>
<string>listbox_resource_relative_url</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -3,12 +3,29 @@ ...@@ -3,12 +3,29 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="ListBox" module="Products.ERP5Form.ListBox"/> <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>columns</string>
<string>all_columns</string>
<string>search_columns</string>
<string>sort</string>
<string>list_method</string>
<string>selection_name</string>
<string>default_params</string>
<string>editable_columns</string>
<string>enabled</string>
</list>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox</string> </value> <value> <string>listbox</string> </value>
...@@ -29,143 +46,15 @@ ...@@ -29,143 +46,15 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>all_columns</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>anchor</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>count_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_tree</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>global_attributes</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>lines</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>meta_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_tree</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>select</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort_columns</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>stat_columns</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>stat_method</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>untranslatable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>url_columns</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -179,46 +68,14 @@ ...@@ -179,46 +68,14 @@
<key> <string>all_columns</string> </key> <key> <string>all_columns</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>anchor</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>columns</string> </key> <key> <string>columns</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>count_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>default_params</string> </key> <key> <string>default_params</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_tree</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>editable_columns</string> </key> <key> <string>editable_columns</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -228,61 +85,21 @@ ...@@ -228,61 +85,21 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>global_attributes</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>lines</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_action</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>list_method</string> </key> <key> <string>list_method</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>meta_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_tree</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>search_columns</string> </key> <key> <string>search_columns</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>select</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>selection_name</string> </key> <key> <string>selection_name</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -292,29 +109,13 @@ ...@@ -292,29 +109,13 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>sort_columns</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_method</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>untranslatable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>url_columns</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -328,14 +129,18 @@ ...@@ -328,14 +129,18 @@
<list> <list>
<tuple> <tuple>
<string>title</string> <string>title</string>
<string>Title</string> <string>Product or Service</string>
</tuple>
<tuple>
<string>resource_relative_url</string>
<string>Product or Service</string>
</tuple> </tuple>
<tuple> <tuple>
<string>reference</string> <string>reference</string>
<string>Reference</string> <string>Reference</string>
</tuple> </tuple>
<tuple> <tuple>
<string>variation_category_item_list</string> <string>variation_category_list</string>
<string>Variation</string> <string>Variation</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -365,28 +170,24 @@ ...@@ -365,28 +170,24 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>anchor</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>columns</string> </key> <key> <string>columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
<string>title</string> <string>title</string>
<string>Title</string> <string>Product or Service</string>
</tuple>
<tuple>
<string>resource_relative_url</string>
<string>Product or Service</string>
</tuple> </tuple>
<tuple> <tuple>
<string>reference</string> <string>reference</string>
<string>Reference</string> <string>Reference</string>
</tuple> </tuple>
<tuple> <tuple>
<string>variation_category_item_list</string> <string>variation_category_list</string>
<string>Variation</string> <string>Variation</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -416,53 +217,27 @@ ...@@ -416,53 +217,27 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>count_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>default_params</string> </key> <key> <string>default_params</string> </key>
<value> <value>
<list/> <list/>
</value> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_root_list</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>domain_tree</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>editable_columns</string> </key> <key> <string>editable_columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
<string>title</string> <string>title</string>
<string>Title</string> <string>Product or Service</string>
</tuple> </tuple>
<tuple> <tuple>
<string>reference</string> <string>resource_relative_url</string>
<string>Reference</string> <string>Product or Service</string>
</tuple> </tuple>
<tuple> <tuple>
<string>variation_category_item_list</string> <string>reference</string>
<string>Variation</string> <string>Reference</string>
</tuple> </tuple>
<tuple> <tuple>
<string>quantity</string> <string>quantity</string>
...@@ -472,6 +247,10 @@ ...@@ -472,6 +247,10 @@
<string>quantity_unit</string> <string>quantity_unit</string>
<string>Quantity Unit</string> <string>Quantity Unit</string>
</tuple> </tuple>
<tuple>
<string>variation_category_list</string>
<string>Variation</string>
</tuple>
<tuple> <tuple>
<string>total_price</string> <string>total_price</string>
<string>Total Price</string> <string>Total Price</string>
...@@ -496,26 +275,12 @@ ...@@ -496,26 +275,12 @@
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string>my_order_sub_lines_listbox</string> </value>
</item>
<item>
<key> <string>global_attributes</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>lines</string> </key> <key> <string>form_id</string> </key>
<value> <int>20</int> </value> <value> <string>OrderLine_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>list_action</string> </key>
<value> <string>list</string> </value>
</item> </item>
<item> <item>
<key> <string>list_method</string> </key> <key> <string>list_method</string> </key>
...@@ -523,43 +288,13 @@ ...@@ -523,43 +288,13 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>meta_types</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>report_root_list</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>report_tree</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>search</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>search_columns</string> </key> <key> <string>search_columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
<string>title</string> <string>title</string>
<string>Title</string> <string>Product or Service</string>
</tuple> </tuple>
<tuple> <tuple>
<string>reference</string> <string>reference</string>
...@@ -572,13 +307,9 @@ ...@@ -572,13 +307,9 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>select</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>selection_name</string> </key> <key> <string>selection_name</string> </key>
<value> <string></string> </value> <value> <string>sale_order_fast_input_selection</string> </value>
</item> </item>
<item> <item>
<key> <string>sort</string> </key> <key> <string>sort</string> </key>
...@@ -587,36 +318,12 @@ ...@@ -587,36 +318,12 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>sort_columns</string> </key> <key> <string>target</string> </key>
<value> <value> <string>Click to edit the target</string> </value>
<list/>
</value>
</item>
<item>
<key> <string>stat_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>stat_method</string> </key>
<value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>listbox</string> </value> <value> <string>Define Sale Order Lines</string> </value>
</item>
<item>
<key> <string>untranslatable_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>url_columns</string> </key>
<value>
<list/>
</value>
</item> </item>
</dictionary> </dictionary>
</value> </value>
......
...@@ -3,12 +3,22 @@ ...@@ -3,12 +3,22 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="ListField" module="Products.Formulator.StandardFields"/> <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>default</string>
<string>items</string>
<string>enabled</string>
</list>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_quantity_unit</string> </value> <value> <string>listbox_quantity_unit</string> </value>
...@@ -21,14 +31,6 @@ ...@@ -21,14 +31,6 @@
<key> <string>external_validator_failed</string> </key> <key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value> <value> <string>The input failed the external validator.</string> </value>
</item> </item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input given.</string> </value>
</item>
<item>
<key> <string>unknown_selection</string> </key>
<value> <string>You selected an item that was not in the list.</string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -37,71 +39,15 @@ ...@@ -37,71 +39,15 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>alternate_name</string> </key> <key> <string>extra_context</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>first_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -111,48 +57,24 @@ ...@@ -111,48 +57,24 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>extra_context</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>extra</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>extra_item</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>first_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
...@@ -162,23 +84,7 @@ ...@@ -162,23 +84,7 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -188,75 +94,33 @@ ...@@ -188,75 +94,33 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>extra_context</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>first_item</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>items</string> </key>
<value> <value>
<list/> <list/>
</value> </value>
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>field_id</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>my_quantity_unit</string> </value> <value> <string>my_quantity_unit</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode</string> </key> <key> <string>form_id</string> </key>
<value> <int>0</int> </value> <value> <string>DeliveryCell_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>whitespace_preserve</string> </key> <key> <string>items</string> </key>
<value> <int>0</int> </value> <value>
<list/>
</value>
</item> </item>
</dictionary> </dictionary>
</value> </value>
...@@ -275,7 +139,7 @@ ...@@ -275,7 +139,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:getattr(here.portal_categories[\'quantity_unit\'], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(base=0, local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> <value> <string>python:cell.SaleOrderLine_getQuantityUnitItemList()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>default</string>
<string>items</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>listbox_resource_relative_url</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_category</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Resource Relative Url</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(\'\', \'\')] + [(x.getTitle(), x.getRelativeUrl()) for x in here.portal_catalog(portal_type=[\'Product\',\'Service\'])]</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -61,6 +61,14 @@ ...@@ -61,6 +61,14 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="LinesField" module="Products.Formulator.StandardFields"/> <global name="ListField" module="Products.Formulator.StandardFields"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_variation_category_item_list</string> </value> <value> <string>listbox_variation_category_list</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -21,21 +21,13 @@ ...@@ -21,21 +21,13 @@
<key> <string>external_validator_failed</string> </key> <key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value> <value> <string>The input failed the external validator.</string> </value>
</item> </item>
<item>
<key> <string>line_too_long</string> </key>
<value> <string>A line was too long.</string> </value>
</item>
<item> <item>
<key> <string>required_not_found</string> </key> <key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input given.</string> </value> <value> <string>Input is required but no input given.</string> </value>
</item> </item>
<item> <item>
<key> <string>too_long</string> </key> <key> <string>unknown_selection</string> </key>
<value> <string>You entered too many characters.</string> </value> <value> <string>You selected an item that was not in the list.</string> </value>
</item>
<item>
<key> <string>too_many_lines</string> </key>
<value> <string>You entered too many lines.</string> </value>
</item> </item>
</dictionary> </dictionary>
</value> </value>
...@@ -77,27 +69,27 @@ ...@@ -77,27 +69,27 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>height</string> </key> <key> <string>extra_item</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>first_item</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>max_length</string> </key> <key> <string>hidden</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>max_linelength</string> </key> <key> <string>items</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>max_lines</string> </key> <key> <string>required</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>size</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
...@@ -108,18 +100,10 @@ ...@@ -108,18 +100,10 @@
<key> <string>unicode</string> </key> <key> <string>unicode</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>view_separator</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>whitespace_preserve</string> </key> <key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>width</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -160,27 +144,29 @@ ...@@ -160,27 +144,29 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>height</string> </key> <key> <string>extra_item</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>first_item</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>max_length</string> </key> <key> <string>hidden</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>max_linelength</string> </key> <key> <string>items</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>max_lines</string> </key> <key> <string>required</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>size</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
...@@ -191,18 +177,10 @@ ...@@ -191,18 +177,10 @@
<key> <string>unicode</string> </key> <key> <string>unicode</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>view_separator</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>whitespace_preserve</string> </key> <key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>width</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -220,9 +198,7 @@ ...@@ -220,9 +198,7 @@
</item> </item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <value> <string></string> </value>
<list/>
</value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -230,7 +206,7 @@ ...@@ -230,7 +206,7 @@
</item> </item>
<item> <item>
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
...@@ -245,57 +221,63 @@ ...@@ -245,57 +221,63 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>height</string> </key> <key> <string>extra_item</string> </key>
<value> <int>5</int> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>first_item</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>max_length</string> </key> <key> <string>hidden</string> </key>
<value> <string></string> </value> <value> <int>0</int> </value>
</item>
<item>
<key> <string>max_linelength</string> </key>
<value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>max_lines</string> </key> <key> <string>items</string> </key>
<value> <string></string> </value> <value>
<list/>
</value>
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>required</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>size</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>listbox_variation_category_item_list</string> </value> <value> <string>Variation</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode</string> </key> <key> <string>unicode</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>view_separator</string> </key>
<value> <string encoding="cdata"><![CDATA[
<br />
]]></string> </value>
</item>
<item> <item>
<key> <string>whitespace_preserve</string> </key> <key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>width</string> </key>
<value> <int>40</int> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(\'\', \'\')] + [(x.getTitle(), x.getRelativeUrl()) for x in here.portal_catalog(portal_type=[\'Product Individual Variation\',\'Service Individual Variation\'])]</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -65,7 +65,9 @@ ...@@ -65,7 +65,9 @@
</item> </item>
<item> <item>
<key> <string>precision</string> </key> <key> <string>precision</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
...@@ -100,4 +102,20 @@ ...@@ -100,4 +102,20 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.getQuantityPrecisionFromResource(here.getPriceCurrency())</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
571 572
\ 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