Commit ec7feafd authored by Aurel's avatar Aurel

use a specific portal type for cash delivery line in monetary issue in order...

use a specific portal type for cash delivery line in monetary issue in order to redefine the variation text on the destination

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7457 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5b8f3e29
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.ActionInformation</string>
<string>ActionInformation</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_view</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>metadata</string> </value>
</item>
<item>
<key> <string>optional</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Manage portal</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>3.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Metadata</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/Base_viewMetadata</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.ActionInformation</string>
<string>ActionInformation</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_print</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>print</string> </value>
</item>
<item>
<key> <string>optional</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>2.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Print</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/Base_printPdf</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.ActionInformation</string>
<string>ActionInformation</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_view</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>view</string> </value>
</item>
<item>
<key> <string>optional</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>View</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/CashDeliveryLine_view</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -29,12 +29,15 @@
<item>Cash Delivery Cell</item>
</portal_type>
<portal_type id="Monetary Issue">
<item>Cash Delivery Line</item>
<item>Monetary Issue Container</item>
<item>Monetary Issue Line</item>
</portal_type>
<portal_type id="Monetary Issue Container">
<item>Container Line</item>
</portal_type>
<portal_type id="Monetary Issue Line">
<item>Cash Delivery Cell</item>
</portal_type>
<portal_type id="Monetary Issue Module">
<item>Monetary Issue</item>
</portal_type>
......
......@@ -23,8 +23,8 @@
<item>Cash Delivery Cell</item>
</portal_type>
<portal_type id="Monetary Issue">
<item>Cash Delivery Line</item>
<item>Monetary Issue Container</item>
<item>Monetary Issue Line</item>
</portal_type>
<portal_type id="Monetary Issue Container">
<item>Container Line</item>
......
......@@ -18,6 +18,9 @@
<item>Amount</item>
<item>Price</item>
</portal_type>
<portal_type id="Monetary Issue Line">
<item>CashDeliveryLine</item>
</portal_type>
<portal_type id="Monetary Reception">
<item>CashContainer</item>
</portal_type>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Type.ERP5Type</string>
<string>ERP5TypeInformation</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_actions</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>_aliases</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_roles</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>acquire_local_roles</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>allowed_content_types</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>base_category_list</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>content_icon</string> </key>
<value> <string>document.gif</string> </value>
</item>
<item>
<key> <string>content_meta_type</string> </key>
<value> <string>ERP5Banking Cash Delivery Line</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string> A DeliveryLine object allows to implement lines in\n
Deliveries (packing list, order, invoice, etc.)\n
\n
It may include a price (for insurance, for customs, for invoices,\n
for orders)\n
</string> </value>
</item>
<item>
<key> <string>factory</string> </key>
<value> <string>addCashDeliveryLine</string> </value>
</item>
<item>
<key> <string>filter_content_types</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<tuple>
<string>delivery_movement</string>
</tuple>
</value>
</item>
<item>
<key> <string>hidden_content_type_list</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Monetary Issue Line</string> </value>
</item>
<item>
<key> <string>init_script</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>property_sheet_list</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">bfINCg==</string> </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>variation = context.getVariationText()\n
result = variation.replace(\'new_not_emitted\', \'new_emitted\')\n
return result\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_cash/MonetaryIssueLine_getBaobabDestinationVariationText</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>*args, **kwd</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>args</string>
<string>kwd</string>
<string>_getattr_</string>
<string>context</string>
<string>variation</string>
<string>result</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>MonetaryIssueLine_getBaobabDestinationVariationText</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -82,7 +82,7 @@ def isSameSet(a, b):\n
return 1\n
\n
# remove existing lines\n
old_line = [x.getObject() for x in context.searchFolder(portal_type=[\'Monetary Issue Container\', \'Cash Delivery Line\'])]\n
old_line = [x.getObject() for x in context.searchFolder(portal_type=[\'Monetary Issue Container\', \'Monetary Issue Line\'])]\n
if len(old_line)>0:\n
for object_list in old_line:\n
context.deleteContent(object_list.getId())\n
......@@ -146,7 +146,7 @@ for cash_container in cash_container_item_dict.keys():\n
resource_total_quantity += container_dict[\'quantity\']\n
\n
movement_line = context.newContent(id = "movement"\n
, portal_type = \'Cash Delivery Line\'\n
, portal_type = \'Monetary Issue Line\'\n
, resource_value = container_dict[\'resource\']\n
, quantity_unit_value = context.portal_categories.quantity_unit.unit\n
)\n
......
......@@ -450,8 +450,8 @@
<value>
<list>
<tuple>
<string>Cash Delivery Line</string>
<string>Cash Delivery Line</string>
<string>Monetary Issue Line</string>
<string>Monetary Issue Line</string>
</tuple>
<tuple>
<string>Cash Delivery Cell</string>
......
......@@ -269,7 +269,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.getTotalPrice(deliveryLineType=\'Cash Delivery Line\')</string> </value>
<value> <string>python: here.getTotalPrice(deliveryLineType=\'Monetary Issue Line\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -35,6 +35,9 @@ Incoming Classification Survey Line | metadata
Incoming Classification Survey Line | view
Monetary Issue Container | metadata
Monetary Issue Container | view
Monetary Issue Line | metadata
Monetary Issue Line | print
Monetary Issue Line | view
Monetary Issue Module | list_ui
Monetary Issue Module | sort_on
Monetary Issue Module | view
......
......@@ -10,9 +10,10 @@ Container Line | Container Cell
Incoming Cash Sorting Line | Cash Delivery Cell
Incoming Classification Survey Line | Cash Delivery Cell
Monetary Issue Container | Container Line
Monetary Issue Line | Cash Delivery Cell
Monetary Issue Module | Monetary Issue
Monetary Issue | Cash Delivery Line
Monetary Issue | Monetary Issue Container
Monetary Issue | Monetary Issue Line
Monetary Reception Module | Monetary Reception
Monetary Reception | Cash Container Item
Monetary Reception | Cash Delivery Line
......
......@@ -8,8 +8,8 @@ Container Line | Container Cell
Incoming Cash Sorting Line | Cash Delivery Cell
Incoming Classification Survey Line | Cash Delivery Cell
Monetary Issue Container | Container Line
Monetary Issue | Cash Delivery Line
Monetary Issue | Monetary Issue Container
Monetary Issue | Monetary Issue Line
Monetary Reception Module | Monetary Reception
Monetary Reception | Cash Container
Monetary Reception | Cash Container Item
......
......@@ -10,6 +10,7 @@ Incoming Cash Sorting Line
Incoming Classification Survey Line
Monetary Issue
Monetary Issue Container
Monetary Issue Line
Monetary Issue Module
Monetary Reception
Monetary Reception Module
......
......@@ -3,6 +3,7 @@ Container Cell | CashContainer
Container Line | CashContainer
Incoming Cash Sorting Line | CashDeliveryLine
Incoming Classification Survey Line | CashDeliveryLine
Monetary Issue Line | CashDeliveryLine
Monetary Issue | Amount
Monetary Issue | Price
Monetary Reception | CashContainer
......
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