Commit 1e1646ff authored by Julien Muchembled's avatar Julien Muchembled

Reorganize new/old simulation-related objects in BT to have proper dependencies

- split erp5_legacy into erp5_simulation_legacy (for generic objects) and
  erp5_{trade,accounting,invoicing}_simulation_legacy
- reverse dependency of erp5_simulation (which may not even need erp5_base)
- move obsolete portal type definitions (including some from erp5_base) to
  appropriate BT
- update BT list of unit tests

A unit test testing Trade now needs:
- new simulation: erp5_base, erp5_pdm, erp5_simulation, erp5_trade,
  erp5_simulation_test (in this order)
- legacy: erp5_base, erp5_pdm, erp5_simulation, erp5_simulation_legacy,
  erp5_trade, erp5_trade_legacy (in this order)

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@38036 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 85aca8f8
......@@ -21,11 +21,6 @@
<item>Purchase Invoice Transaction</item>
<item>Sale Invoice Transaction</item>
</portal_type>
<portal_type id="Accounting Transaction Root Simulation Rule">
<item>Category Divergence Tester</item>
<item>Property Divergence Tester</item>
<item>Quantity Divergence Tester</item>
</portal_type>
<portal_type id="Balance Transaction">
<item>Balance Transaction Line</item>
</portal_type>
......@@ -33,31 +28,27 @@
<item>Internal Invoice Transaction Line</item>
</portal_type>
<portal_type id="Invoice Root Simulation Rule">
<item>Category Divergence Tester</item>
<item>Property Divergence Tester</item>
<item>Quantity Divergence Tester</item>
</portal_type>
<portal_type id="Invoice Rule">
<item>Category Divergence Tester</item>
<item>Property Divergence Tester</item>
<item>Quantity Divergence Tester</item>
<item>Category Membership Divergence Tester</item>
<item>DateTime Divergence Tester</item>
<item>Float Divergence Tester</item>
<item>Net Converted Quantity Divergence Tester</item>
<item>String Divergence Tester</item>
<item>Variation Divergence Tester</item>
</portal_type>
<portal_type id="Organisation">
<item>Accounting Period</item>
<item>Cash Register</item>
</portal_type>
<portal_type id="Payment Rule">
<item>Category Divergence Tester</item>
<item>Property Divergence Tester</item>
<item>Quantity Divergence Tester</item>
</portal_type>
<portal_type id="Payment Simulation Rule">
<item>Accounting Rule Cell</item>
<item>Category Divergence Tester</item>
<item>Category Membership Divergence Tester</item>
<item>DateTime Divergence Tester</item>
<item>Float Divergence Tester</item>
<item>Mapped Property</item>
<item>Net Converted Quantity Divergence Tester</item>
<item>Predicate</item>
<item>Property Divergence Tester</item>
<item>Quantity Divergence Tester</item>
<item>String Divergence Tester</item>
<item>Variation Divergence Tester</item>
</portal_type>
<portal_type id="Payment Transaction">
<item>Accounting Transaction Line</item>
......@@ -78,8 +69,6 @@
<portal_type id="Rule Tool">
<item>Accounting Transaction Root Simulation Rule</item>
<item>Invoice Root Simulation Rule</item>
<item>Invoice Rule</item>
<item>Payment Rule</item>
<item>Payment Simulation Rule</item>
</portal_type>
<portal_type id="Sale Invoice Transaction">
......
......@@ -35,14 +35,6 @@
<type>Invoice Root Simulation Rule</type>
<workflow>edit_workflow, rule_validation_workflow</workflow>
</chain>
<chain>
<type>Invoice Rule</type>
<workflow>edit_workflow, rule_validation_workflow</workflow>
</chain>
<chain>
<type>Payment Rule</type>
<workflow>edit_workflow, rule_validation_workflow</workflow>
</chain>
<chain>
<type>Payment Simulation Rule</type>
<workflow>edit_workflow, rule_interaction_workflow, rule_validation_workflow</workflow>
......
erp5_base >= 0.8.3
erp5_core >= 1.0rc13
\ No newline at end of file
erp5_core >= 1.0rc13
erp5_simulation
\ No newline at end of file
......@@ -71,12 +71,10 @@ Internal Invoice Transaction | profile_view
Internal Invoice Transaction | source_asset
Internal Invoice Transaction | view
Invoice Root Simulation Rule | view
Invoice Rule | view
Organisation | grouping_reference_fast_input
Organisation | jump_active_accounting_pref
Organisation | jump_to_accounting
Organisation | transactions
Payment Rule | view
Payment Simulation Rule | divergence
Payment Simulation Rule | view
Payment Transaction | add_accounting_transaction_line
......
portal_categories/account_type/**
portal_categories/financial_section/*
portal_categories/financial_section/*
\ No newline at end of file
......@@ -7,31 +7,28 @@ Accounting Transaction Module | Balance Transaction
Accounting Transaction Module | Payment Transaction
Accounting Transaction Module | Purchase Invoice Transaction
Accounting Transaction Module | Sale Invoice Transaction
Accounting Transaction Root Simulation Rule | Category Divergence Tester
Accounting Transaction Root Simulation Rule | Property Divergence Tester
Accounting Transaction Root Simulation Rule | Quantity Divergence Tester
Accounting Transaction | Accounting Transaction Line
Accounting Transaction | File
Accounting Transaction | Image
Balance Transaction | Balance Transaction Line
Internal Invoice Transaction | Internal Invoice Transaction Line
Invoice Root Simulation Rule | Category Divergence Tester
Invoice Root Simulation Rule | Property Divergence Tester
Invoice Root Simulation Rule | Quantity Divergence Tester
Invoice Rule | Category Divergence Tester
Invoice Rule | Property Divergence Tester
Invoice Rule | Quantity Divergence Tester
Invoice Root Simulation Rule | Category Membership Divergence Tester
Invoice Root Simulation Rule | DateTime Divergence Tester
Invoice Root Simulation Rule | Float Divergence Tester
Invoice Root Simulation Rule | Net Converted Quantity Divergence Tester
Invoice Root Simulation Rule | String Divergence Tester
Invoice Root Simulation Rule | Variation Divergence Tester
Organisation | Accounting Period
Organisation | Cash Register
Payment Rule | Category Divergence Tester
Payment Rule | Property Divergence Tester
Payment Rule | Quantity Divergence Tester
Payment Simulation Rule | Accounting Rule Cell
Payment Simulation Rule | Category Divergence Tester
Payment Simulation Rule | Category Membership Divergence Tester
Payment Simulation Rule | DateTime Divergence Tester
Payment Simulation Rule | Float Divergence Tester
Payment Simulation Rule | Mapped Property
Payment Simulation Rule | Net Converted Quantity Divergence Tester
Payment Simulation Rule | Predicate
Payment Simulation Rule | Property Divergence Tester
Payment Simulation Rule | Quantity Divergence Tester
Payment Simulation Rule | String Divergence Tester
Payment Simulation Rule | Variation Divergence Tester
Payment Transaction | Accounting Transaction Line
Payment Transaction | File
Payment Transaction | Image
......@@ -44,8 +41,6 @@ Purchase Invoice Transaction | Image
Purchase Invoice Transaction | Purchase Invoice Transaction Line
Rule Tool | Accounting Transaction Root Simulation Rule
Rule Tool | Invoice Root Simulation Rule
Rule Tool | Invoice Rule
Rule Tool | Payment Rule
Rule Tool | Payment Simulation Rule
Sale Invoice Transaction | File
Sale Invoice Transaction | Image
......
......@@ -13,8 +13,6 @@ Cash Register
Internal Invoice Transaction
Internal Invoice Transaction Line
Invoice Root Simulation Rule
Invoice Rule
Payment Rule
Payment Simulation Rule
Payment Transaction
Purchase Invoice Transaction
......
......@@ -19,10 +19,6 @@ Cash Register | validation_workflow
Internal Invoice Transaction | accounting_workflow
Invoice Root Simulation Rule | edit_workflow
Invoice Root Simulation Rule | rule_validation_workflow
Invoice Rule | edit_workflow
Invoice Rule | rule_validation_workflow
Payment Rule | edit_workflow
Payment Rule | rule_validation_workflow
Payment Simulation Rule | edit_workflow
Payment Simulation Rule | rule_interaction_workflow
Payment Simulation Rule | rule_validation_workflow
......
<allowed_content_type_list>
<portal_type id="Accounting Transaction Root Simulation Rule">
<item>Category Divergence Tester</item>
<item>Property Divergence Tester</item>
<item>Quantity Divergence Tester</item>
</portal_type>
<portal_type id="Invoice Root Simulation Rule">
<item>Category Divergence Tester</item>
<item>Property Divergence Tester</item>
<item>Quantity Divergence Tester</item>
</portal_type>
<portal_type id="Invoice Rule">
<item>Category Divergence Tester</item>
<item>Property Divergence Tester</item>
<item>Quantity Divergence Tester</item>
</portal_type>
<portal_type id="Payment Rule">
<item>Category Divergence Tester</item>
<item>Property Divergence Tester</item>
<item>Quantity Divergence Tester</item>
</portal_type>
<portal_type id="Payment Simulation Rule">
<item>Category Divergence Tester</item>
<item>Property Divergence Tester</item>
<item>Quantity Divergence Tester</item>
</portal_type>
<portal_type id="Rule Tool">
<item>Invoice Rule</item>
<item>Payment Rule</item>
</portal_type>
</allowed_content_type_list>
\ No newline at end of file
<workflow_chain>
<chain>
<type>Invoice Rule</type>
<workflow>edit_workflow, rule_validation_workflow</workflow>
</chain>
<chain>
<type>Payment Rule</type>
<workflow>edit_workflow, rule_validation_workflow</workflow>
</chain>
</workflow_chain>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Folder" module="OFS.Folder"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>business_template_skin_layer_priority</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>float</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>business_template_skin_layer_priority</string> </key>
<value> <float>30.0</float> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_accounting_simulation_legacy</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
erp5_simulation_legacy
erp5_accounting
\ No newline at end of file
Invoice Rule | view
Payment Rule | view
\ No newline at end of file
portal_rules/default_accounting_transaction_root_simulation_rule
portal_rules/default_accounting_transaction_root_simulation_rule/**
portal_rules/default_invoice_root_simulation_rule
portal_rules/default_invoice_root_simulation_rule/**
portal_rules/default_invoice_rule
portal_rules/default_invoice_rule/**
portal_rules/default_payment_rule
portal_rules/default_payment_rule/**
portal_rules/default_payment_simulation_rule
portal_rules/default_payment_simulation_rule/**
\ No newline at end of file
Accounting Transaction Root Simulation Rule | Category Divergence Tester
Accounting Transaction Root Simulation Rule | Property Divergence Tester
Accounting Transaction Root Simulation Rule | Quantity Divergence Tester
Invoice Root Simulation Rule | Category Divergence Tester
Invoice Root Simulation Rule | Property Divergence Tester
Invoice Root Simulation Rule | Quantity Divergence Tester
Invoice Rule | Category Divergence Tester
Invoice Rule | Property Divergence Tester
Invoice Rule | Quantity Divergence Tester
Payment Rule | Category Divergence Tester
Payment Rule | Property Divergence Tester
Payment Rule | Quantity Divergence Tester
Payment Simulation Rule | Category Divergence Tester
Payment Simulation Rule | Property Divergence Tester
Payment Simulation Rule | Quantity Divergence Tester
Rule Tool | Invoice Rule
Rule Tool | Payment Rule
\ No newline at end of file
Invoice Rule
Payment Rule
\ No newline at end of file
Invoice Rule | edit_workflow
Invoice Rule | rule_validation_workflow
Payment Rule | edit_workflow
Payment Rule | rule_validation_workflow
\ No newline at end of file
erp5_accounting_simulation_legacy
\ No newline at end of file
erp5_accounting_simulation_legacy
\ No newline at end of file
......@@ -42,7 +42,9 @@
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Delivery Builder objects allow to gather multiple Simulation Movements into\n
<value> <string>XXX Deprecated. It must be moved to erp5_simulation_legacy BT. 2 new portal types will replace it: Generated Delivery Builder and Simulated Delivery Builder, which will be in erp5_simulation BT.\n
\n
Delivery Builder objects allow to gather multiple Simulation Movements into\n
a single Delivery. The initial quantity property of the Delivery Line is\n
calculated by summing quantities of related Simulation Movements.\n
\n
......
......@@ -19,10 +19,6 @@
<type>Career</type>
<workflow>career_workflow</workflow>
</chain>
<chain>
<type>Category Divergence Tester</type>
<workflow>edit_workflow</workflow>
</chain>
<chain>
<type>Chat Address</type>
<workflow>edit_workflow</workflow>
......@@ -71,14 +67,6 @@
<type>Person</type>
<workflow>edit_workflow, person_interaction_workflow, user_account_workflow, validation_workflow</workflow>
</chain>
<chain>
<type>Property Divergence Tester</type>
<workflow>edit_workflow</workflow>
</chain>
<chain>
<type>Quantity Divergence Tester</type>
<workflow>edit_workflow</workflow>
</chain>
<chain>
<type>Query</type>
<workflow>edit_workflow, query_workflow</workflow>
......
......@@ -10,7 +10,6 @@ Bank Account | view
Base Variant Movement Group | view
Career | change_function
Career | view
Category Divergence Tester | view
Category Movement Group | view
Causality Assignment Movement Group | view
Causality Movement Group | view
......@@ -69,9 +68,7 @@ Person | terminate_career
Person | view
Preference | base_preference
Property Assignment Movement Group | view
Property Divergence Tester | view
Property Movement Group | view
Quantity Divergence Tester | view
Quantity Sign Movement Group | view
Query Module | view
Query | view
......
......@@ -5,7 +5,6 @@ Assignment
Bank Account
Base Variant Movement Group
Career
Category Divergence Tester
Category Movement Group
Causality Assignment Movement Group
Causality Movement Group
......@@ -41,9 +40,7 @@ Parent Explanation Movement Group
Person
Person Module
Property Assignment Movement Group
Property Divergence Tester
Property Movement Group
Quantity Divergence Tester
Quantity Sign Movement Group
Query
Query Module
......
......@@ -5,7 +5,6 @@ Assignment | edit_workflow
Bank Account | edit_workflow
Bank Account | validation_workflow
Career | career_workflow
Category Divergence Tester | edit_workflow
Chat Address | edit_workflow
Credit Card | edit_workflow
Credit Card | validation_workflow
......@@ -34,8 +33,6 @@ Person | edit_workflow
Person | person_interaction_workflow
Person | user_account_workflow
Person | validation_workflow
Property Divergence Tester | edit_workflow
Quantity Divergence Tester | edit_workflow
Query | edit_workflow
Query | query_workflow