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,39 +62,72 @@ ...@@ -62,39 +62,72 @@
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
\n Base_translateString(\'Quantity Asked For Line %s Not Available In Inventory\'%line[\'listbox_key\'])) \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>
......
<?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>
......
...@@ -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