[Erp5-report] r25586 - in /erp5/trunk/bt5/erp5_invoicing: CategoryTemplateItem/portal_categ...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 16 18:48:13 CET 2009
Author: jerome
Date: Mon Feb 16 18:48:12 2009
New Revision: 25586
URL: http://svn.erp5.org?rev=25586&view=rev
Log:
2009-02-16 jerome
* copy source_account and destination_account from supply line on delivery lines, and enable this for divergence on invoice lines.
Added:
erp5/trunk/bt5/erp5_invoicing/CategoryTemplateItem/portal_categories/destination_account.xml
erp5/trunk/bt5/erp5_invoicing/CategoryTemplateItem/portal_categories/source_account.xml
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow.xml
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions/
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions.xml
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions/copySourceAndDestinationAccount.xml
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts/
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts.xml
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts/copySourceAndDestinationAccount.xml
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/variables.xml
erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/worklists.xml
Modified:
erp5/trunk/bt5/erp5_invoicing/PathTemplateItem/portal_rules/default_invoicing_rule/default_category_tester.xml
erp5/trunk/bt5/erp5_invoicing/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
erp5/trunk/bt5/erp5_invoicing/bt/change_log
erp5/trunk/bt5/erp5_invoicing/bt/revision
erp5/trunk/bt5/erp5_invoicing/bt/template_base_category_list
erp5/trunk/bt5/erp5_invoicing/bt/template_portal_type_workflow_chain_list
erp5/trunk/bt5/erp5_invoicing/bt/template_workflow_id_list
Added: erp5/trunk/bt5/erp5_invoicing/CategoryTemplateItem/portal_categories/destination_account.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/CategoryTemplateItem/portal_categories/destination_account.xml?rev=25586&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/CategoryTemplateItem/portal_categories/destination_account.xml (added)
+++ erp5/trunk/bt5/erp5_invoicing/CategoryTemplateItem/portal_categories/destination_account.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -1,0 +1,165 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="BaseCategory" module="Products.ERP5Type.Document.BaseCategory"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>acquisition_append_value</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>acquisition_base_category</string> </key>
+ <value>
+ <tuple>
+ <string>delivery</string>
+ <string>order</string>
+ <string>parent</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>acquisition_copy_value</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>acquisition_mask_value</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ <item>
+ <key> <string>acquisition_object_id</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>acquisition_portal_type</string> </key>
+ <value> <string>python: list( portal.getPortalAcquisitionMovementTypeList() + portal.getPortalItemTypeList() + portal.getPortalDeliveryTypeList() + portal.getPortalOrderTypeList() + portal.getPortalInvoiceTypeList())</string> </value>
+ </item>
+ <item>
+ <key> <string>acquisition_sync_value</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>categories</string> </key>
+ <value>
+ <tuple>
+ <string>destination_account</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>category_type</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>criterion_property</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>fallback_base_category</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>destination_account</string> </value>
+ </item>
+ <item>
+ <key> <string>id_generator</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id_group</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>last_id</string> </key>
+ <value> <string>1</string> </value>
+ </item>
+ <item>
+ <key> <string>membership_criterion_base_category</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>membership_criterion_category</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>multimembership_criterion_base_category</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>portal_type</string> </key>
+ <value> <string>Base Category</string> </value>
+ </item>
+ <item>
+ <key> <string>read_permission</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>rid</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>short_title</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>sid</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>test_method_id</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Account</string> </value>
+ </item>
+ <item>
+ <key> <string>write_permission</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_invoicing/CategoryTemplateItem/portal_categories/source_account.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/CategoryTemplateItem/portal_categories/source_account.xml?rev=25586&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/CategoryTemplateItem/portal_categories/source_account.xml (added)
+++ erp5/trunk/bt5/erp5_invoicing/CategoryTemplateItem/portal_categories/source_account.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -1,0 +1,166 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="BaseCategory" module="Products.ERP5Type.Document.BaseCategory"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>acquisition_append_value</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>acquisition_base_category</string> </key>
+ <value>
+ <tuple>
+ <string>delivery</string>
+ <string>order</string>
+ <string>parent</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>acquisition_copy_value</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>acquisition_mask_value</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ <item>
+ <key> <string>acquisition_object_id</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>acquisition_portal_type</string> </key>
+ <value> <string>python: list( portal.getPortalAcquisitionMovementTypeList() + portal.getPortalItemTypeList() + portal.getPortalDeliveryTypeList() + portal.getPortalOrderTypeList() + portal.getPortalInvoiceTypeList())</string> </value>
+ </item>
+ <item>
+ <key> <string>acquisition_sync_value</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>categories</string> </key>
+ <value>
+ <tuple>
+ <string>destination_account</string>
+ <string>source_account</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>category_type</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>criterion_property</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>fallback_base_category</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>source_account</string> </value>
+ </item>
+ <item>
+ <key> <string>id_generator</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id_group</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>last_id</string> </key>
+ <value> <string>1</string> </value>
+ </item>
+ <item>
+ <key> <string>membership_criterion_base_category</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>membership_criterion_category</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>multimembership_criterion_base_category</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>portal_type</string> </key>
+ <value> <string>Base Category</string> </value>
+ </item>
+ <item>
+ <key> <string>read_permission</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>rid</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>short_title</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>sid</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>test_method_id</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Account</string> </value>
+ </item>
+ <item>
+ <key> <string>write_permission</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_invoicing/PathTemplateItem/portal_rules/default_invoicing_rule/default_category_tester.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/PathTemplateItem/portal_rules/default_invoicing_rule/default_category_tester.xml?rev=25586&r1=25585&r2=25586&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/PathTemplateItem/portal_rules/default_invoicing_rule/default_category_tester.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_invoicing/PathTemplateItem/portal_rules/default_invoicing_rule/default_category_tester.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -65,6 +65,8 @@
<string>aggregate | Aggregate</string>
<string>price_currency | Price Currency</string>
<string>base_contribution | Base Contribution</string>
+ <string>source_account | Source Account</string>
+ <string>destination_account | Destination Account</string>
</tuple>
</value>
</item>
Modified: erp5/trunk/bt5/erp5_invoicing/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml?rev=25586&r1=25585&r2=25586&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_invoicing/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -1,27 +1,43 @@
<workflow_chain>
<chain>
<type>Invoice Cell</type>
- <workflow>delivery_movement_causality_interaction_workflow, delivery_movement_simulation_interaction_workflow, edit_workflow, tax_interaction_workflow, pricing_interaction_workflow</workflow>
+ <workflow>pricing_interaction_workflow, delivery_movement_account_interaction_workflow, delivery_movement_causality_interaction_workflow, delivery_movement_simulation_interaction_workflow, tax_interaction_workflow, edit_workflow</workflow>
</chain>
<chain>
<type>Invoice Line</type>
- <workflow>delivery_movement_simulation_interaction_workflow, tax_interaction_workflow, pricing_interaction_workflow, trade_matrix_workflow, delivery_movement_causality_interaction_workflow, edit_workflow</workflow>
+ <workflow>delivery_movement_simulation_interaction_workflow, delivery_movement_account_interaction_workflow, pricing_interaction_workflow, tax_interaction_workflow, trade_matrix_workflow, delivery_movement_causality_interaction_workflow, edit_workflow</workflow>
</chain>
<chain>
<type>Invoice Transaction Rule</type>
- <workflow>rule_interaction_workflow, rule_validation_workflow, edit_workflow</workflow>
+ <workflow>edit_workflow, rule_interaction_workflow, rule_validation_workflow</workflow>
</chain>
<chain>
<type>Invoicing Rule</type>
- <workflow>rule_validation_workflow, edit_workflow</workflow>
+ <workflow>edit_workflow, rule_validation_workflow</workflow>
</chain>
<chain>
<type>Purchase Invoice Transaction</type>
<workflow>delivery_tax_interaction_workflow</workflow>
</chain>
<chain>
+ <type>Purchase Order Cell</type>
+ <workflow>delivery_movement_account_interaction_workflow</workflow>
+ </chain>
+ <chain>
+ <type>Purchase Order Line</type>
+ <workflow>delivery_movement_account_interaction_workflow</workflow>
+ </chain>
+ <chain>
<type>Sale Invoice Transaction</type>
<workflow>delivery_tax_interaction_workflow</workflow>
+ </chain>
+ <chain>
+ <type>Sale Order Cell</type>
+ <workflow>delivery_movement_account_interaction_workflow</workflow>
+ </chain>
+ <chain>
+ <type>Sale Order Line</type>
+ <workflow>delivery_movement_account_interaction_workflow</workflow>
</chain>
<chain>
<type>Tax Rule</type>
Added: erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow.xml?rev=25586&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow.xml (added)
+++ erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -1,0 +1,31 @@
+<?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>_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>delivery_movement_account_interaction_workflow</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions.xml?rev=25586&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions.xml (added)
+++ erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -1,0 +1,31 @@
+<?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>_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>
Added: erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions/copySourceAndDestinationAccount.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions/copySourceAndDestinationAccount.xml?rev=25586&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions/copySourceAndDestinationAccount.xml (added)
+++ erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/interactions/copySourceAndDestinationAccount.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -1,0 +1,93 @@
+<?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>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>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>after_script_name</string> </key>
+ <value>
+ <list>
+ <string>copySourceAndDestinationAccount</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>before_commit_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>copySourceAndDestinationAccount</string> </value>
+ </item>
+ <item>
+ <key> <string>method_id</string> </key>
+ <value>
+ <list>
+ <string>_setResource.*</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>
+ <none/>
+ </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>
Added: erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts.xml?rev=25586&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts.xml (added)
+++ erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -1,0 +1,31 @@
+<?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>_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>
Added: erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts/copySourceAndDestinationAccount.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts/copySourceAndDestinationAccount.xml?rev=25586&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts/copySourceAndDestinationAccount.xml (added)
+++ erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/scripts/copySourceAndDestinationAccount.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -1,0 +1,141 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>Script_magic</string> </key>
+ <value> <int>3</int> </value>
+ </item>
+ <item>
+ <key> <string>_bind_names</string> </key>
+ <value>
+ <object>
+ <klass>
+ <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+ </klass>
+ <tuple/>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>_asgns</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>name_container</string> </key>
+ <value> <string>container</string> </value>
+ </item>
+ <item>
+ <key> <string>name_context</string> </key>
+ <value> <string>context</string> </value>
+ </item>
+ <item>
+ <key> <string>name_m_self</string> </key>
+ <value> <string>script</string> </value>
+ </item>
+ <item>
+ <key> <string>name_subpath</string> </key>
+ <value> <string>traverse_subpath</string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>_body</string> </key>
+ <value> <string>line = sci[\'object\']\n
+\n
+searchPredicateList = line.getPortalObject().portal_domains.searchPredicateList\n
+\n
+for predicate in searchPredicateList(\n
+ context=line, portal_type=\'Purchase Supply Line\'):\n
+ if predicate.getDestinationAccount():\n
+ line.setDestinationAccount(predicate.getDestinationAccount())\n
+ break\n
+\n
+for predicate in searchPredicateList(\n
+ context=line, portal_type=\'Sale Supply Line\'):\n
+ if predicate.getSourceAccount():\n
+ line.setSourceAccount(predicate.getSourceAccount())\n
+ break\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>_code</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string>sci</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>sci</string>
+ <string>_getitem_</string>
+ <string>line</string>
+ <string>_getattr_</string>
+ <string>searchPredicateList</string>
+ <string>_getiter_</string>
+ <string>predicate</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>copySourceAndDestinationAccount</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/variables.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/variables.xml?rev=25586&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/variables.xml (added)
+++ erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/variables.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -1,0 +1,25 @@
+<?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>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>variables</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/worklists.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/worklists.xml?rev=25586&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/worklists.xml (added)
+++ erp5/trunk/bt5/erp5_invoicing/WorkflowTemplateItem/portal_workflow/delivery_movement_account_interaction_workflow/worklists.xml [utf8] Mon Feb 16 18:48:12 2009
@@ -1,0 +1,25 @@
+<?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>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>worklists</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_invoicing/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/bt/change_log?rev=25586&r1=25585&r2=25586&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/bt/change_log [utf8] (original)
+++ erp5/trunk/bt5/erp5_invoicing/bt/change_log [utf8] Mon Feb 16 18:48:12 2009
@@ -1,3 +1,6 @@
+2009-02-16 jerome
+* copy source_account and destination_account from supply line on delivery lines, and enable this for divergence on invoice lines.
+
2009-02-12 yusei
* Invoice Line can now contain Invoice Line. This is useful if we want to make a invoice which collect all orders from divisions in one company and list up invoice line per each division.
Modified: erp5/trunk/bt5/erp5_invoicing/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/bt/revision?rev=25586&r1=25585&r2=25586&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_invoicing/bt/revision [utf8] Mon Feb 16 18:48:12 2009
@@ -1,1 +1,1 @@
-209
+213
Modified: erp5/trunk/bt5/erp5_invoicing/bt/template_base_category_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/bt/template_base_category_list?rev=25586&r1=25585&r2=25586&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/bt/template_base_category_list [utf8] (original)
+++ erp5/trunk/bt5/erp5_invoicing/bt/template_base_category_list [utf8] Mon Feb 16 18:48:12 2009
@@ -1,1 +1,3 @@
-invoice_transmission_mode
+destination_account
+invoice_transmission_mode
+source_account
Modified: erp5/trunk/bt5/erp5_invoicing/bt/template_portal_type_workflow_chain_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/bt/template_portal_type_workflow_chain_list?rev=25586&r1=25585&r2=25586&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/bt/template_portal_type_workflow_chain_list [utf8] (original)
+++ erp5/trunk/bt5/erp5_invoicing/bt/template_portal_type_workflow_chain_list [utf8] Mon Feb 16 18:48:12 2009
@@ -1,8 +1,10 @@
+Invoice Cell | delivery_movement_account_interaction_workflow
Invoice Cell | delivery_movement_causality_interaction_workflow
Invoice Cell | delivery_movement_simulation_interaction_workflow
Invoice Cell | edit_workflow
Invoice Cell | pricing_interaction_workflow
Invoice Cell | tax_interaction_workflow
+Invoice Line | delivery_movement_account_interaction_workflow
Invoice Line | delivery_movement_causality_interaction_workflow
Invoice Line | delivery_movement_simulation_interaction_workflow
Invoice Line | edit_workflow
@@ -15,6 +17,10 @@
Invoicing Rule | edit_workflow
Invoicing Rule | rule_validation_workflow
Purchase Invoice Transaction | delivery_tax_interaction_workflow
+Purchase Order Cell | delivery_movement_account_interaction_workflow
+Purchase Order Line | delivery_movement_account_interaction_workflow
Sale Invoice Transaction | delivery_tax_interaction_workflow
+Sale Order Cell | delivery_movement_account_interaction_workflow
+Sale Order Line | delivery_movement_account_interaction_workflow
Tax Rule | edit_workflow
Tax Rule | rule_validation_workflow
Modified: erp5/trunk/bt5/erp5_invoicing/bt/template_workflow_id_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/bt/template_workflow_id_list?rev=25586&r1=25585&r2=25586&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/bt/template_workflow_id_list [utf8] (original)
+++ erp5/trunk/bt5/erp5_invoicing/bt/template_workflow_id_list [utf8] Mon Feb 16 18:48:12 2009
@@ -1,0 +1,1 @@
+delivery_movement_account_interaction_workflow
More information about the Erp5-report
mailing list