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

2009-05-19 mame

*improve bt
*define security on item_workflow,remove aggregate_interaction_workflow(fast input of creation of items does the same thing)
*remove jump actions on item
*Modify scripts for actions Create Related Affectation, it just creates the delivery, the delivery line and aggregate the item to it.
*modify fast input script for item creation in order to properly take care of variation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27047 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a34c9eba
...@@ -9,22 +9,10 @@ ...@@ -9,22 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>Script_magic</string> </key> <key> <string>Script_magic</string> </key>
<value> <int>3</int> </value> <value> <int>3</int> </value>
</item> </item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -65,8 +53,17 @@ ...@@ -65,8 +53,17 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>return brain.url\n <value> <string encoding="cdata"><![CDATA[
</string> </value>
return \'%s/view?selection_name=%s&selection_index=%s\' % (\n
brain.url,\n
selection_name,\n
selection)\n
\n
#return brain.url\n
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
...@@ -74,18 +71,6 @@ ...@@ -74,18 +71,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>brain, selection, selection_name</string> </value> <value> <string>brain, selection, selection_name</string> </value>
......
...@@ -53,23 +53,58 @@ ...@@ -53,23 +53,58 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>item_list = []\n <value> <string>from Products.ERP5Type.Message import translateString\n
item_list = []\n
request = context.REQUEST\n
total_quantity = 0.0\n
type = request.get("field_my_type")\n
if context.getPortalType()==\'Purchase Packing List Line\':\n
cell_portal_type = \'Purchase Packing List Cell\'\n
elif context.getPortalType()==\'Purchase Order Line\' :\n
cell_portal_type = \'Purchase Order Cell\'\n
elif context.getPortalType()==\'Sale Packing List Line\':\n
cell_portal_type = \'Sale Packing List Cell\'\n
\n \n
movement_cell_list = context.contentValues(portal_type=cell_portal_type)\n
context.setVariationCategoryList([])\n
context.setAggregateValueList([])\n
base_id = \'movement\'\n
for line in kw.get(\'listbox\'):\n for line in kw.get(\'listbox\'):\n
if not (line[\'title\']):\n if not (line[\'title\']):\n
continue\n continue\n
module = context.getDefaultModule("Item")\n module = context.getDefaultModule(\'Item\')\n
item = module.newContent(portal_type="Item",\n item = module.newContent(portal_type=\'Item\',\n
title=line[\'title\'],\n title=line[\'title\'],\n
reference=line[\'reference\'],\n reference=line[\'reference\'],\n
quantity=line[\'quantity\'])\n quantity=line[\'quantity\'])\n
item.validate()\n
item_list.append(item) \n
\n \n
item_list.append(item)\n \n
if line.has_key("variation_category_list") and line[\'variation_category_list\'] not in(\'\',[]) and [line[\'variation_category_list\'][i] not in context.getVariationCategoryList() for i in range(0,(len(line[\'variation_category_list\'])-1))][0]:\n
context.setVariationCategoryList(context.getVariationCategoryList() + list((line[\'variation_category_list\'])))\n
if line.has_key("variation_category_list") and line[\'variation_category_list\'] not in(\'\',None):\n
cell_key = list((line[\'variation_category_list\']))\n
quantity = line[\'quantity\']\n
cell = context.newCell(base_id=base_id, \\\n
portal_type=cell_portal_type,*cell_key)\n
cell.edit(mapped_value_property_list=[\'price\',\'quantity\'],\n
price=cell.getPrice(), quantity=quantity,\n
predicate_category_list=cell_key,\n
variation_category_list=cell_key)\n
cell.setAggregateValue(item)\n
total_quantity+=line[\'quantity\']\n
\n \n
if movement_cell_list ==[]:\n
context.setQuantity(context.getQuantity()+total_quantity)\n
else:\n
context.setQuantity(total_quantity)\n
\n \n
context.setAggregateValueList(item_list + list(context.getAggregateValueList()))\n if context.getVariationCategoryList()==[]: \n
context.setAggregateValueList(item_list )\n
\n \n
context.REQUEST.response.redirect(\'%s/view?portal_status_message=%s\' % (context.absolute_url(), \'Items created.\'.replace(\' \', \'%20\')))\n return context.Base_redirect(form_id, keep_items=dict(\n
portal_status_message=translateString(\'Items created\')))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -80,7 +115,7 @@ context.REQUEST.response.redirect(\'%s/view?portal_status_message=%s\' % (contex ...@@ -80,7 +115,7 @@ context.REQUEST.response.redirect(\'%s/view?portal_status_message=%s\' % (contex
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>*args, **kw</string> </value> <value> <string>form_id=\'view\',*args, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -100,23 +135,44 @@ context.REQUEST.response.redirect(\'%s/view?portal_status_message=%s\' % (contex ...@@ -100,23 +135,44 @@ context.REQUEST.response.redirect(\'%s/view?portal_status_message=%s\' % (contex
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>form_id</string>
<string>args</string> <string>args</string>
<string>kw</string> <string>kw</string>
<string>Products.ERP5Type.Message</string>
<string>translateString</string>
<string>item_list</string> <string>item_list</string>
<string>_getiter_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string>
<string>request</string>
<string>total_quantity</string>
<string>type</string>
<string>cell_portal_type</string>
<string>movement_cell_list</string>
<string>base_id</string>
<string>_getiter_</string>
<string>line</string> <string>line</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>context</string>
<string>module</string> <string>module</string>
<string>item</string> <string>item</string>
<string>append</string>
<string>$append0</string>
<string>range</string>
<string>len</string>
<string>i</string>
<string>list</string> <string>list</string>
<string>None</string>
<string>cell_key</string>
<string>quantity</string>
<string>_apply_</string>
<string>cell</string>
<string>_inplacevar_</string>
<string>dict</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -128,7 +184,9 @@ context.REQUEST.response.redirect(\'%s/view?portal_status_message=%s\' % (contex ...@@ -128,7 +184,9 @@ context.REQUEST.response.redirect(\'%s/view?portal_status_message=%s\' % (contex
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<string>view</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -64,7 +64,7 @@ except ValueError:\n ...@@ -64,7 +64,7 @@ except ValueError:\n
result = []\n result = []\n
\n \n
for i in range(count):\n for i in range(count):\n
obj = newTempBase(portal, id="tmp_item_%s" % i, uid="tmp_item_%s" % i)\n obj = newTempBase(portal, id="tmp_item_%s" % i, uid="new_item_%s" % i)\n
result.append(obj)\n result.append(obj)\n
\n \n
return result\n return result\n
......
...@@ -95,7 +95,6 @@ ...@@ -95,7 +95,6 @@
<string>listbox_title</string> <string>listbox_title</string>
<string>listbox_reference</string> <string>listbox_reference</string>
<string>listbox_quantity</string> <string>listbox_quantity</string>
<string>listbox_variation_category_list</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -105,9 +104,10 @@ ...@@ -105,9 +104,10 @@
<list> <list>
<string>my_resource_title</string> <string>my_resource_title</string>
<string>my_total_quantity</string> <string>my_total_quantity</string>
<string>my_quantity_unit</string>
<string>your_item_count</string> <string>your_item_count</string>
<string>my_type</string> <string>your_type</string>
<string>listbox_variation_category_list</string>
<string>my_quantity_unit</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -303,6 +303,10 @@ ...@@ -303,6 +303,10 @@
<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> <item>
<key> <string>url_columns</string> </key> <key> <string>url_columns</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_type</string> </value> <value> <string>your_type</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -42,12 +36,6 @@ ...@@ -42,12 +36,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string>ItemModule_createRelatedAffectationValidate</string> </value> <value> <string>ItemModule_createRelatedAffectationValidate</string> </value>
...@@ -110,8 +98,6 @@ ...@@ -110,8 +98,6 @@
<list> <list>
<string>your_reference</string> <string>your_reference</string>
<string>your_title</string> <string>your_title</string>
<string>your_destination</string>
<string>your_destination_section</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -162,7 +148,7 @@ ...@@ -162,7 +148,7 @@
</item> </item>
<item> <item>
<key> <string>update_action</string> </key> <key> <string>update_action</string> </key>
<value> <string></string> </value> <value> <string>ItemModule_createRelatedAffectationFormDialog</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>items</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>your_destination_section</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>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> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>your_destination_section</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Item_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>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<value> <string>Item_viewFieldLibrary</string> </value> <value> <string>Item_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>required</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
......
...@@ -9,22 +9,10 @@ ...@@ -9,22 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>Script_magic</string> </key> <key> <string>Script_magic</string> </key>
<value> <int>3</int> </value> <value> <int>3</int> </value>
</item> </item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -67,15 +55,16 @@ ...@@ -67,15 +55,16 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># Creates one Order/Packing list per Different Source sections\n <value> <string># Creates one Order/Packing list per Different Source sections\n
# Creates one Line per Resource\n # Creates one Line per Resource\n
from Products.ERP5Type.Message import translateString\n
selection_name = "item_module_selection"\n selection_name = "item_module_selection"\n
\n cell_portal_type = \'%s Cell\' % portal_type\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
stool = portal.portal_selections\n stool = portal.portal_selections\n
getObject = portal.portal_catalog.getObject\n getObject = portal.portal_catalog.getObject\n
\n \n
\n
stool.updateSelectionCheckedUidList(selection_name, listbox_uid, uids)\n stool.updateSelectionCheckedUidList(selection_name, listbox_uid, uids)\n
selection_uid_list = context.portal_selections.getSelectionCheckedUidsFor(\n selection_uid_list = stool.getSelectionCheckedUidsFor(selection_name)\n
selection_name)\n
\n \n
if selection_uid_list:\n if selection_uid_list:\n
object_list = [getObject(uid) for uid in selection_uid_list]\n object_list = [getObject(uid) for uid in selection_uid_list]\n
...@@ -85,8 +74,6 @@ else:\n ...@@ -85,8 +74,6 @@ else:\n
source_section_list = [ item.Item_getCurrentOwnerTitle(with_title=0) for item in object_list ]\n source_section_list = [ item.Item_getCurrentOwnerTitle(with_title=0) for item in object_list ]\n
\n \n
property_dict = {\'title\':title,\n property_dict = {\'title\':title,\n
\'destination_section\' : destination_section,\n
\'destination\' : destination,\n
\'stop_date\' : stop_date,\n \'stop_date\' : stop_date,\n
\'start_date\' : start_date,\n \'start_date\' : start_date,\n
\'portal_type\' : portal_type, }\n \'portal_type\' : portal_type, }\n
...@@ -126,15 +113,32 @@ for item in object_list:\n ...@@ -126,15 +113,32 @@ for item in object_list:\n
pl_line_dict[\'portal_type\'] = line_portal_type\n pl_line_dict[\'portal_type\'] = line_portal_type\n
\n \n
pl_line_dict[\'title\']= \'%s\' % (item.getReference())\n pl_line_dict[\'title\']= \'%s\' % (item.getReference())\n
pl_line_dict[\'aggregate_value_list\'] = [item]\n #pl_line_dict[\'aggregate_value_list\'] = [item]\n
pl_line_dict[\'quantity\'] = quantity\n pl_line_dict[\'quantity\'] = quantity\n
#pl_line_dict[\'quantity_unit\'] = quantity_unit\n #pl_line_dict[\'quantity_unit\'] = quantity_unit\n
pl_line_dict[\'resource_value\'] = resource\n pl_line_dict[\'resource_value\'] = resource\n
pl_line_dict[\'source_value\'] = source\n pl_line_dict[\'source_value\'] = source\n
\n
pl_line_value = pl_value.newContent(**pl_line_dict)\n pl_line_value = pl_value.newContent(**pl_line_dict)\n
\n if item.Item_getVariationOnMovement()==[]:\n
context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n pl_line_value.setAggregateValue(item)\n
else:\n
pl_line_value.setVariationCategoryList(item.Item_getVariationOnMovement(current=1))\n
base_id = \'movement\'\n
cell_key_list = list(pl_line_value.getCellKeyList(base_id=base_id))\n
cell_key_list.sort()\n
for cell_key in cell_key_list: \n
cell = pl_line_value.newCell(base_id=base_id, \\\n
portal_type=cell_portal_type,*cell_key)\n
cell.edit(mapped_value_property_list=[\'price\',\'quantity\'],\n
price=item.getPrice(), quantity=item.getQuantity(),\n
predicate_category_list=cell_key,\n
variation_category_list=cell_key)\n
cell.setAggregateValue(item)\n
\n
form_id = \'/\'.join(pl_value.getPhysicalPath())\n
return context.Base_redirect(form_id, keep_items=dict(\n
portal_status_message=translateString(\'Items affected\')))\n
#context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -143,18 +147,6 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n ...@@ -143,18 +147,6 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>uids=[], listbox_uid=[],destination=None,destination_section=None,portal_type=None,site_suggestion=None,source=None,source_section=None,start_date=None,quantity=None,stop_date=None,title=\'\',**kw</string> </value> <value> <string>uids=[], listbox_uid=[],destination=None,destination_section=None,portal_type=None,site_suggestion=None,source=None,source_section=None,start_date=None,quantity=None,stop_date=None,title=\'\',**kw</string> </value>
...@@ -196,7 +188,10 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n ...@@ -196,7 +188,10 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n
<string>stop_date</string> <string>stop_date</string>
<string>title</string> <string>title</string>
<string>kw</string> <string>kw</string>
<string>Products.ERP5Type.Message</string>
<string>translateString</string>
<string>selection_name</string> <string>selection_name</string>
<string>cell_portal_type</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
...@@ -227,6 +222,13 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n ...@@ -227,6 +222,13 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n
<string>resource</string> <string>resource</string>
<string>pl_line_dict</string> <string>pl_line_dict</string>
<string>pl_line_value</string> <string>pl_line_value</string>
<string>base_id</string>
<string>list</string>
<string>cell_key_list</string>
<string>cell_key</string>
<string>cell</string>
<string>form_id</string>
<string>dict</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -42,12 +36,6 @@ ...@@ -42,12 +36,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string>Base_doSelect</string> </value> <value> <string>Base_doSelect</string> </value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -42,12 +36,6 @@ ...@@ -42,12 +36,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string>Item_createRelatedAffectationValidate</string> </value> <value> <string>Item_createRelatedAffectationValidate</string> </value>
...@@ -95,10 +83,7 @@ ...@@ -95,10 +83,7 @@
<item> <item>
<key> <string>center</string> </key> <key> <string>center</string> </key>
<value> <value>
<list> <list/>
<string>your_destination</string>
<string>your_destination_section</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -167,7 +152,7 @@ ...@@ -167,7 +152,7 @@
</item> </item>
<item> <item>
<key> <string>update_action</string> </key> <key> <string>update_action</string> </key>
<value> <string>Item_createAffectationFormDialog</string> </value> <value> <string>Item_createRelatedAffectationFormDialog</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
......
...@@ -57,13 +57,13 @@ ...@@ -57,13 +57,13 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<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>items</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>your_destination_section</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>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> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>your_destination_section</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Item_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>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<value> <string>Item_viewFieldLibrary</string> </value> <value> <string>Item_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>required</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<value> <string>Item_viewFieldLibrary</string> </value> <value> <string>Item_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>required</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
<value> <string>Item_viewFieldLibrary</string> </value> <value> <string>Item_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>required</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
......
...@@ -9,22 +9,10 @@ ...@@ -9,22 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>Script_magic</string> </key> <key> <string>Script_magic</string> </key>
<value> <int>3</int> </value> <value> <int>3</int> </value>
</item> </item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -69,15 +57,14 @@ ...@@ -69,15 +57,14 @@
source = context.Item_getCurrentSiteValue()\n source = context.Item_getCurrentSiteValue()\n
source_section = context.Item_getCurrentOwnerTitle(with_title=0)\n source_section = context.Item_getCurrentOwnerTitle(with_title=0)\n
\n \n
property_dict = {\'title\':title,\n property_dict = {\'title\':title, \n
\'destination_section\' : destination_section,\n
\'destination\' : destination, \n
\'stop_date\' : stop_date,\n \'stop_date\' : stop_date,\n
\'start_date\' : start_date,\n \'start_date\' : start_date,\n
\'portal_type\' : portal_type, }\n \'portal_type\' : portal_type, }\n
\n \n
module = context.getDefaultModule(portal_type=portal_type)\n module = context.getDefaultModule(portal_type=portal_type)\n
line_portal_type = \'%s Line\' % portal_type\n line_portal_type = \'%s Line\' % portal_type\n
cell_portal_type = \'%s Cell\' % portal_type\n
\n \n
pl_dict = {}\n pl_dict = {}\n
for k,v in property_dict.items():\n for k,v in property_dict.items():\n
...@@ -87,16 +74,33 @@ pl_line_dict = {}\n ...@@ -87,16 +74,33 @@ pl_line_dict = {}\n
pl_line_dict[\'portal_type\'] = line_portal_type\n pl_line_dict[\'portal_type\'] = line_portal_type\n
\n \n
pl_line_dict[\'title\']= \'%s\' % (context.getReference())\n pl_line_dict[\'title\']= \'%s\' % (context.getReference())\n
pl_line_dict[\'aggregate_value_list\'] = [context]\n #pl_line_dict[\'aggregate_value_list\'] = [context]\n
pl_line_dict[\'quantity\'] = quantity\n pl_line_dict[\'quantity\'] = quantity\n
pl_line_dict[\'quantity_unit\'] = quantity_unit\n pl_line_dict[\'quantity_unit\'] = quantity_unit\n
\n
pl_value = module.newContent(**pl_dict)\n pl_value = module.newContent(**pl_dict)\n
pl_value.setSourceValue(source)\n
pl_value.setSourceSectionValue(source)\n
pl_line_value = pl_value.newContent(**pl_line_dict)\n
\n \n
context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n pl_line_value = pl_value.newContent(**pl_line_dict)\n
pl_line_value.setResourceValue(context.Item_getResourceValue())\n
context.log(context.Item_getVariationOnMovement())\n
if context.Item_getVariationOnMovement()==[]:\n
pl_line_value.setAggregateValue(context)\n
else:\n
pl_line_value.setVariationCategoryList(context.Item_getVariationOnMovement(current=1))\n
base_id = \'movement\'\n
cell_key_list = list(pl_line_value.getCellKeyList(base_id=base_id))\n
context.log(cell_key_list)\n
cell_key_list.sort()\n
for cell_key in cell_key_list: \n
cell = pl_line_value.newCell(base_id=base_id, \\\n
portal_type=cell_portal_type,*cell_key)\n
cell.edit(mapped_value_property_list=[\'price\',\'quantity\'],\n
price=context.getPrice(), quantity=context.getQuantity(),\n
predicate_category_list=cell_key,\n
variation_category_list=cell_key)\n
cell.setAggregateValue(context)\n
form_id = \'/\'.join(pl_value.getPhysicalPath())\n
return context.Base_redirect(form_id, keep_items=dict(\n
portal_status_message=translateString(\'Item affected\')))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -105,18 +109,6 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n ...@@ -105,18 +109,6 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>destination=None,destination_section=None,portal_type=None,site_suggestion=None,start_date=None,quantity=None,start_date=None,stop_date=None,title=\'\',quantity_unit=None,**kw</string> </value> <value> <string>destination=None,destination_section=None,portal_type=None,site_suggestion=None,start_date=None,quantity=None,start_date=None,stop_date=None,title=\'\',quantity_unit=None,**kw</string> </value>
...@@ -163,6 +155,7 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n ...@@ -163,6 +155,7 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n
<string>property_dict</string> <string>property_dict</string>
<string>module</string> <string>module</string>
<string>line_portal_type</string> <string>line_portal_type</string>
<string>cell_portal_type</string>
<string>pl_dict</string> <string>pl_dict</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>k</string> <string>k</string>
...@@ -172,7 +165,14 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n ...@@ -172,7 +165,14 @@ context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n
<string>_apply_</string> <string>_apply_</string>
<string>pl_value</string> <string>pl_value</string>
<string>pl_line_value</string> <string>pl_line_value</string>
<string>_getitem_</string> <string>base_id</string>
<string>list</string>
<string>cell_key_list</string>
<string>cell_key</string>
<string>cell</string>
<string>form_id</string>
<string>dict</string>
<string>translateString</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -71,10 +71,10 @@ simulation_state = context.getPortalCurrentInventoryStateList() \\\n ...@@ -71,10 +71,10 @@ simulation_state = context.getPortalCurrentInventoryStateList() \\\n
kw[\'item.simulation_state\'] = simulation_state\n kw[\'item.simulation_state\'] = simulation_state\n
for res in method(aggregate_uid=uid, **kw):\n for res in method(aggregate_uid=uid, **kw):\n
history = newTempBase(context, str(len(history_list)))\n history = newTempBase(context, str(len(history_list)))\n
explanation = catalog(uid=res.delivery_uid).getExplanationValue()\n explanation = catalog(uid=res.delivery_uid)\n
node_value = catalog(uid=res.node_uid)\n node_value = catalog(uid=res.node_uid)\n
section_value = catalog(uid=res.section_uid)\n section_value = catalog(uid=res.section_uid)\n
resource_value = catalog(uid=res.resource_uid)\n resource_value = catalog(uid=res.resource_uid) \n
history.edit(\n history.edit(\n
#uid = catalog(uid=res.uid).getTitle(),\n #uid = catalog(uid=res.uid).getTitle(),\n
date=res.getDate(),\n date=res.getDate(),\n
...@@ -82,9 +82,13 @@ for res in method(aggregate_uid=uid, **kw):\n ...@@ -82,9 +82,13 @@ for res in method(aggregate_uid=uid, **kw):\n
section_title=section_value is not None and section_value.getTitle() or None,\n section_title=section_value is not None and section_value.getTitle() or None,\n
resource_title=resource_value is not None and resource_value.getTitle() or None,\n resource_title=resource_value is not None and resource_value.getTitle() or None,\n
explanation=explanation.getTitle(),\n explanation=explanation.getTitle(),\n
translated_portal_type = explanation.getTranslatedPortalType(),\n
quantity = explanation.getQuantity(),\n
url=explanation.absolute_url(),\n url=explanation.absolute_url(),\n
simulation_state=explanation.getTranslatedSimulationState(),\n variation_category_item_list = [x[0] for x in explanation.getVariationCategoryItemList()],\n
simulation_state=explanation.getTranslatedSimulationStateTitle(),\n
)\n )\n
\n
history_list.append(history)\n history_list.append(history)\n
\n \n
return history_list\n return history_list\n
...@@ -148,6 +152,10 @@ return history_list\n ...@@ -148,6 +152,10 @@ return history_list\n
<string>section_value</string> <string>section_value</string>
<string>resource_value</string> <string>resource_value</string>
<string>None</string> <string>None</string>
<string>append</string>
<string>$append0</string>
<string>x</string>
<string>_getitem_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
<?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>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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># Jump to the deliveries related to current item\n
\n
\n
selection_uid_list = []\n
search_list = context.portal_simulation.getTrackingList(item=context.getRelativeUrl())\n
for search_result in search_list:\n
movement_uid = search_result[\'delivery_uid\']\n
if movement_uid is not None:\n
movement = context.portal_catalog.getObject(movement_uid)\n
delivery = movement.getRootDeliveryValue()\n
delivery_uid = delivery.getUid()\n
if delivery_uid not in selection_uid_list:\n
selection_uid_list.append(delivery_uid)\n
\n
request=context.REQUEST\n
if len(selection_uid_list) != 0 : \n
kw = {\'uid\': selection_uid_list}\n
context.portal_selections.setSelectionParamsFor(\'Item_jumpToDeliveryForm\', kw)\n
#request.set(\'object_uid\', context.getUid())\n
request.set(\'uids\', selection_uid_list)\n
return context.Item_jumpToDeliveryForm(\n
uids=selection_uid_list, REQUEST=request)\n
\n
redirect_url = \'%s/view?%s\' % (context.getPath(),\n
\'portal_status_message=No+Related+Delivery+For+Current+Item\')\n
return context.REQUEST[ \'RESPONSE\' ].redirect(redirect_url)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</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>kw</string>
<string>selection_uid_list</string>
<string>_getattr_</string>
<string>context</string>
<string>search_list</string>
<string>_getiter_</string>
<string>search_result</string>
<string>_getitem_</string>
<string>movement_uid</string>
<string>None</string>
<string>movement</string>
<string>delivery</string>
<string>delivery_uid</string>
<string>request</string>
<string>len</string>
<string>redirect_url</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>Item_jumpToDelivery</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -42,12 +36,6 @@ ...@@ -42,12 +36,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string>view</string> </value> <value> <string>view</string> </value>
......
<?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>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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># Jump to the deliveries related to current item\n
selection_uid_list = []\n
search_list = context.getAggregateRelatedValueList(portal_type="Invoice Line")\n
for invoice in search_list:\n
delivery = invoice.getRootDeliveryValue()\n
delivery_uid = delivery.getUid()\n
if delivery_uid not in selection_uid_list:\n
selection_uid_list.append(delivery_uid)\n
\n
request=context.REQUEST\n
if len(selection_uid_list) != 0 : \n
kw = {\'uid\': selection_uid_list}\n
context.portal_selections.setSelectionParamsFor(\'Item_jumpToDeliveryForm\', kw)\n
#request.set(\'object_uid\', context.getUid())\n
request.set(\'uids\', selection_uid_list)\n
return context.Item_jumpToDeliveryForm(\n
uids=selection_uid_list, REQUEST=request)\n
\n
redirect_url = \'%s/view?%s\' % (context.getPath(),\n
\'portal_status_message=No+Related+Invoice+For+Current+Item\')\n
return context.REQUEST[ \'RESPONSE\' ].redirect(redirect_url)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</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>kw</string>
<string>selection_uid_list</string>
<string>_getattr_</string>
<string>context</string>
<string>search_list</string>
<string>_getiter_</string>
<string>invoice</string>
<string>delivery</string>
<string>delivery_uid</string>
<string>request</string>
<string>len</string>
<string>redirect_url</string>
<string>_getitem_</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>Item_jumpToInvoice</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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># Jump to the deliveries related to current item\n
selection_uid_list = []\n
portal_type_list = context.getPortalOrderMovementTypeList()\n
search_list = context.getAggregateRelatedValueList(portal_type=portal_type_list)\n
for order in search_list:\n
delivery = order.getParentValue()\n
delivery_uid = delivery.getUid()\n
if delivery_uid not in selection_uid_list:\n
selection_uid_list.append(delivery_uid)\n
\n
request=context.REQUEST\n
if len(selection_uid_list) != 0 : \n
kw = {\'uid\': selection_uid_list}\n
context.portal_selections.setSelectionParamsFor(\'Item_jumpToDeliveryForm\', kw)\n
#request.set(\'object_uid\', context.getUid())\n
request.set(\'uids\', selection_uid_list)\n
return context.Item_jumpToDeliveryForm(\n
uids=selection_uid_list, REQUEST=request)\n
\n
redirect_url = \'%s/view?%s\' % (context.getPath(),\n
\'portal_status_message=No+Related+Order+For+Current+Item\')\n
return context.REQUEST[ \'RESPONSE\' ].redirect(redirect_url)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</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>kw</string>
<string>selection_uid_list</string>
<string>_getattr_</string>
<string>context</string>
<string>portal_type_list</string>
<string>search_list</string>
<string>_getiter_</string>
<string>order</string>
<string>delivery</string>
<string>delivery_uid</string>
<string>request</string>
<string>len</string>
<string>redirect_url</string>
<string>_getitem_</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>Item_jumpToOrder</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -96,6 +96,7 @@ ...@@ -96,6 +96,7 @@
<string>my_current_owner</string> <string>my_current_owner</string>
<string>my_current_site</string> <string>my_current_site</string>
<string>my_expiration_date</string> <string>my_expiration_date</string>
<string>my_fishing_zone</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<value> <value>
<list> <list>
<string>listbox_date</string> <string>listbox_date</string>
<string>listbox_variation_category_list</string> <string>listbox_variation_category_item_list</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -103,6 +103,7 @@ ...@@ -103,6 +103,7 @@
<list> <list>
<string>my_title</string> <string>my_title</string>
<string>my_reference</string> <string>my_reference</string>
<string>listbox_variation_category_list</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -9,22 +9,10 @@ ...@@ -9,22 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>Script_magic</string> </key> <key> <string>Script_magic</string> </key>
<value> <int>3</int> </value> <value> <int>3</int> </value>
</item> </item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -89,18 +77,6 @@ return [context.portal_catalog.getObject(uid) for uid in selection_uid_list]\n ...@@ -89,18 +77,6 @@ return [context.portal_catalog.getObject(uid) for uid in selection_uid_list]\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>**kw</string> </value> <value> <string>**kw</string> </value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -42,12 +36,6 @@ ...@@ -42,12 +36,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string>Base_edit</string> </value> <value> <string>Base_edit</string> </value>
...@@ -95,13 +83,17 @@ ...@@ -95,13 +83,17 @@
<value> <value>
<list> <list>
<string>listbox_history</string> <string>listbox_history</string>
<string>listbox_quantity</string>
<string>listbox_variation_category_item_list</string>
</list> </list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>left</string> </key> <key> <string>left</string> </key>
<value> <value>
<list/> <list>
<string>my_title</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>items</string> <string>editable</string>
</list> </list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>your_destination</string> </value> <value> <string>listbox_quantity</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -37,15 +37,15 @@ ...@@ -37,15 +37,15 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>extra_context</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>target</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -56,19 +56,15 @@ ...@@ -56,19 +56,15 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>extra_context</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>target</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -79,22 +75,22 @@ ...@@ -79,22 +75,22 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>editable</string> </key>
<value> <string>your_destination</string> </value> <value> <int>0</int> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Item_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>extra_context</string> </key>
<value> <value>
<list/> <list/>
</value> </value>
</item> </item>
<item> <item>
<key> <string>target</string> </key> <key> <string>field_id</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>my_quantity</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Item_viewFieldLibrary</string> </value>
</item> </item>
</dictionary> </dictionary>
</value> </value>
......
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>items</string> <string>editable</string>
</list> </list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>your_destination</string> </value> <value> <string>my_title</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -63,10 +63,6 @@ ...@@ -63,10 +63,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -79,18 +75,16 @@ ...@@ -79,18 +75,16 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>editable</string> </key>
<value> <string>your_destination</string> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>Item_viewFieldLibrary</string> </value> <value> <string>my_title</string> </value>
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>form_id</string> </key>
<value> <value> <string>PurchasePackingList_viewFieldLibrary</string> </value>
<list/>
</value>
</item> </item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>if (context.getResource() and context.getResourceValue().getAggregatedPortalTypeList()) or (context.getAggregate()) or (context.getResource() is None and context.getPortalItemTypeList()):\n <value> <string>if context.getPortalType() in [\'Purchase Packing List Line\',\'Inventory Line\'] and (context.getResource() and context.getResourceValue().getAggregatedPortalTypeList()) or (context.getAggregate()) or (context.getResource() is None and context.getPortalItemTypeList()):\n
return 0\n return 0\n
else:\n else:\n
return 1\n return 1\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>aggregate_interaction_workflow</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Interaction" module="Products.ERP5.Interaction"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_mapping</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>interactions</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>activate_script_name</string> </key>
<value>
<list>
<string>Movement_setQuantity</string>
<string>Movement_setResource</string>
</list>
</value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>setDeliveryQuantityAndResouce</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<list>
<string>_edit</string>
</list>
</value>
</item>
<item>
<key> <string>once_per_transaction</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
<value>
<list>
<string>Internal Packing List Line</string>
<string>Purchase Order Line</string>
<string>Purchase Packing List Line</string>
<string>Sale Order Line</string>
<string>Sale Packing List Line</string>
</list>
</value>
</item>
<item>
<key> <string>script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Scripts" module="Products.DCWorkflow.Scripts"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_mapping</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>scripts</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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 encoding="cdata"><![CDATA[
order = state_change[\'object\']\n
\n
item_list = order.getAggregateValueList()\n
quantity = sum([ i.getQuantity() for i in item_list if i.getQuantity() is not None ])\n
\n
if quantity > order.getQuantity():\n
order.setQuantity(quantity)\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>_getitem_</string>
<string>order</string>
<string>_getattr_</string>
<string>item_list</string>
<string>sum</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>i</string>
<string>None</string>
<string>quantity</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>Movement_setQuantity</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>order = state_change[\'object\']\n
\n
resource_list = [ ]\n
if order.getResourceValue() in [\'\', None ]:\n
for item in order.getAggregateValueList():\n
resource = item.Item_getResourceValue()\n
if resource not in resource_list or (resource is not None):\n
resource_list.append(resource)\n
\n
if len(resource_list) == 1: \n
order.setResourceValue(resource)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>_getitem_</string>
<string>order</string>
<string>resource_list</string>
<string>_getattr_</string>
<string>None</string>
<string>_getiter_</string>
<string>item</string>
<string>resource</string>
<string>len</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>Movement_setResource</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Variables" module="Products.DCWorkflow.Variables"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_mapping</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>variables</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Worklists" module="Products.DCWorkflow.Worklists"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_mapping</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>worklists</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_objects</string> </key> <key> <string>_objects</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_mapping</string> </key> <key> <string>_mapping</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_mapping</string> </key> <key> <string>_mapping</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -23,6 +17,12 @@ ...@@ -23,6 +17,12 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>deleted</string> </value> <value> <string>deleted</string> </value>
</item> </item>
<item>
<key> <string>permission_roles</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Deleted</string> </value> <value> <string>Deleted</string> </value>
...@@ -42,4 +42,63 @@ ...@@ -42,4 +42,63 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>Access contents information</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Add portal content</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Delete objects</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Modify portal content</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>View</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -23,6 +17,12 @@ ...@@ -23,6 +17,12 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>invalidated</string> </value> <value> <string>invalidated</string> </value>
</item> </item>
<item>
<key> <string>permission_roles</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Invalidated</string> </value> <value> <string>Invalidated</string> </value>
...@@ -47,4 +47,80 @@ ...@@ -47,4 +47,80 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>Access contents information</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Add portal content</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Delete objects</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Modify portal content</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>View</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -23,6 +17,12 @@ ...@@ -23,6 +17,12 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>validated</string> </value> <value> <string>validated</string> </value>
</item> </item>
<item>
<key> <string>permission_roles</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Validated</string> </value> <value> <string>Validated</string> </value>
...@@ -45,4 +45,80 @@ ...@@ -45,4 +45,80 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>Access contents information</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Add portal content</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Delete objects</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Modify portal content</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>View</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_mapping</string> </key> <key> <string>_mapping</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
...@@ -38,7 +32,7 @@ ...@@ -38,7 +32,7 @@
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
<value> <value>
<none/> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -64,4 +58,25 @@ ...@@ -64,4 +58,25 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>roles</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
...@@ -38,7 +32,7 @@ ...@@ -38,7 +32,7 @@
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
<value> <value>
<none/> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -64,4 +58,25 @@ ...@@ -64,4 +58,25 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>roles</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Assignee</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
...@@ -38,7 +32,7 @@ ...@@ -38,7 +32,7 @@
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
<value> <value>
<none/> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -64,4 +58,25 @@ ...@@ -64,4 +58,25 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>roles</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Assignee</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_mapping</string> </key> <key> <string>_mapping</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_mapping</string> </key> <key> <string>_mapping</string> </key>
<value> <value>
......
65 68
\ No newline at end of file \ No newline at end of file
...@@ -3,9 +3,6 @@ Internal Packing List | aggregate_item ...@@ -3,9 +3,6 @@ Internal Packing List | aggregate_item
Item Module | create_order Item Module | create_order
Item Module | view Item Module | view
Item | create_order Item | create_order
Item | delivery_jump
Item | jump_to_invoice
Item | jump_to_order
Item | tracking_list Item | tracking_list
Item | view Item | view
Purchase Order Line | item_creation Purchase Order Line | item_creation
......
Internal Packing List Line | aggregate_interaction_workflow
Item | edit_workflow Item | edit_workflow
Item | item_workflow Item | item_workflow
Purchase Order Line | aggregate_interaction_workflow
Purchase Packing List Line | aggregate_interaction_workflow
Returned Sale Packing List Line | aggregate_interaction_workflow
Sale Order Line | aggregate_interaction_workflow
Sale Packing List Line | aggregate_interaction_workflow
Service Report | edit_workflow Service Report | edit_workflow
Service Report | item_workflow Service Report | item_workflow
\ No newline at end of file
aggregate_interaction_workflow
item_workflow item_workflow
\ 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