Commit a428bc7e authored by Jérome Perrin's avatar Jérome Perrin

Move legacy simulation parts of erp5_accounting in a legacy business template.

parent bc033180
...@@ -5,10 +5,6 @@ ...@@ -5,10 +5,6 @@
<portal_type id="Accounting Period"> <portal_type id="Accounting Period">
<item>Accounting Period</item> <item>Accounting Period</item>
</portal_type> </portal_type>
<portal_type id="Accounting Rule Cell">
<item>Accounting Rule Cell Line</item>
<item>Accounting Transaction Line</item>
</portal_type>
<portal_type id="Accounting Transaction"> <portal_type id="Accounting Transaction">
<item>Accounting Transaction Line</item> <item>Accounting Transaction Line</item>
<item>Embedded File</item> <item>Embedded File</item>
...@@ -48,7 +44,6 @@ ...@@ -48,7 +44,6 @@
<item>Cash Register</item> <item>Cash Register</item>
</portal_type> </portal_type>
<portal_type id="Payment Simulation Rule"> <portal_type id="Payment Simulation Rule">
<item>Accounting Rule Cell</item>
<item>Category Membership Divergence Tester</item> <item>Category Membership Divergence Tester</item>
<item>DateTime Divergence Tester</item> <item>DateTime Divergence Tester</item>
<item>Float Divergence Tester</item> <item>Float Divergence Tester</item>
......
<hidden_content_type_list> <hidden_content_type_list>
<portal_type id="Accounting Rule Cell">
<item>Accounting Transaction Line</item>
</portal_type>
<portal_type id="Accounting Transaction"> <portal_type id="Accounting Transaction">
<item>Embedded File</item> <item>Embedded File</item>
</portal_type> </portal_type>
......
<property_sheet_list> <property_sheet_list>
<portal_type id="Accounting Rule Cell Line">
<item>AccountingRuleCellLine</item>
</portal_type>
<portal_type id="Accounting Transaction"> <portal_type id="Accounting Transaction">
<item>AccountingTransactionConstraint</item> <item>AccountingTransactionConstraint</item>
</portal_type> </portal_type>
......
...@@ -10,9 +10,6 @@ Account | view ...@@ -10,9 +10,6 @@ Account | view
Accounting Period | create_secondary_periods Accounting Period | create_secondary_periods
Accounting Period | jump_related_balance_transaction Accounting Period | jump_related_balance_transaction
Accounting Period | view Accounting Period | view
Accounting Rule Cell Line | view
Accounting Rule Cell | view
Accounting Rule Cell | view_destination
Accounting Transaction Balance Constraint | predicate Accounting Transaction Balance Constraint | predicate
Accounting Transaction Balance Constraint | view Accounting Transaction Balance Constraint | view
Accounting Transaction Line | destination_view Accounting Transaction Line | destination_view
......
Account Module | Account Account Module | Account
Accounting Period | Accounting Period Accounting Period | Accounting Period
Accounting Rule Cell | Accounting Rule Cell Line
Accounting Rule Cell | Accounting Transaction Line
Accounting Transaction Module | Accounting Transaction Accounting Transaction Module | Accounting Transaction
Accounting Transaction Module | Balance Transaction Accounting Transaction Module | Balance Transaction
Accounting Transaction Module | Payment Transaction Accounting Transaction Module | Payment Transaction
...@@ -26,7 +24,6 @@ Invoice Root Simulation Rule | String Divergence Tester ...@@ -26,7 +24,6 @@ Invoice Root Simulation Rule | String Divergence Tester
Invoice Root Simulation Rule | Variation Divergence Tester Invoice Root Simulation Rule | Variation Divergence Tester
Organisation | Accounting Period Organisation | Accounting Period
Organisation | Cash Register Organisation | Cash Register
Payment Simulation Rule | Accounting Rule Cell
Payment Simulation Rule | Category Membership Divergence Tester Payment Simulation Rule | Category Membership Divergence Tester
Payment Simulation Rule | DateTime Divergence Tester Payment Simulation Rule | DateTime Divergence Tester
Payment Simulation Rule | Float Divergence Tester Payment Simulation Rule | Float Divergence Tester
......
Accounting Rule Cell | Accounting Transaction Line
Accounting Transaction Module | Balance Transaction Accounting Transaction Module | Balance Transaction
Accounting Transaction | Embedded File Accounting Transaction | Embedded File
Payment Transaction | Embedded File Payment Transaction | Embedded File
......
...@@ -3,8 +3,6 @@ Account Module ...@@ -3,8 +3,6 @@ Account Module
Account Type Constraint Account Type Constraint
Account Type Constraint Line Account Type Constraint Line
Accounting Period Accounting Period
Accounting Rule Cell
Accounting Rule Cell Line
Accounting Transaction Accounting Transaction
Accounting Transaction Balance Constraint Accounting Transaction Balance Constraint
Accounting Transaction Line Accounting Transaction Line
......
Accounting Rule Cell Line | AccountingRuleCellLine
Accounting Transaction Line | AccountingTransactionLineConstraint Accounting Transaction Line | AccountingTransactionLineConstraint
Accounting Transaction | AccountingTransactionConstraint Accounting Transaction | AccountingTransactionConstraint
Balance Transaction Line | AccountingTransactionLineConstraint Balance Transaction Line | AccountingTransactionLineConstraint
......
<allowed_content_type_list>
<portal_type id="Accounting Rule Cell">
<item>Accounting Rule Cell Line</item>
<item>Accounting Transaction Line</item>
</portal_type>
<portal_type id="Invoice Transaction Simulation Rule">
<item>Accounting Rule Cell</item>
</portal_type>
<portal_type id="Payment Simulation Rule">
<item>Accounting Rule Cell</item>
</portal_type>
</allowed_content_type_list>
\ No newline at end of file
<hidden_content_type_list>
<portal_type id="Accounting Rule Cell">
<item>Accounting Transaction Line</item>
</portal_type>
</hidden_content_type_list>
\ No newline at end of file
<property_sheet_list>
<portal_type id="Accounting Rule Cell Line">
<item>AccountingRuleCellLine</item>
</portal_type>
</property_sheet_list>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</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>
Legacy simulation used in erp5_accounting.
Instead of accounting rule cell, just use business process and set accounts as source / destination on business links
\ No newline at end of file
Accounting Rule Cell Line | view
Accounting Rule Cell | view
Accounting Rule Cell | view_destination
\ No newline at end of file
Accounting Rule Cell | Accounting Rule Cell Line
Accounting Rule Cell | Accounting Transaction Line
Invoice Transaction Simulation Rule | Accounting Rule Cell
Payment Simulation Rule | Accounting Rule Cell
\ No newline at end of file
Accounting Rule Cell | Accounting Transaction Line
\ No newline at end of file
Accounting Rule Cell
Accounting Rule Cell Line
\ No newline at end of file
Accounting Rule Cell Line | AccountingRuleCellLine
\ No newline at end of file
AccountingRuleCellLine
\ 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
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
<item>Variation Divergence Tester</item> <item>Variation Divergence Tester</item>
</portal_type> </portal_type>
<portal_type id="Invoice Transaction Simulation Rule"> <portal_type id="Invoice Transaction Simulation Rule">
<item>Accounting Rule Cell</item>
<item>Category Membership Divergence Tester</item> <item>Category Membership Divergence Tester</item>
<item>DateTime Divergence Tester</item> <item>DateTime Divergence Tester</item>
<item>Float Divergence Tester</item> <item>Float Divergence Tester</item>
......
...@@ -8,7 +8,6 @@ Invoice Simulation Rule | Net Converted Quantity Divergence Tester ...@@ -8,7 +8,6 @@ Invoice Simulation Rule | Net Converted Quantity Divergence Tester
Invoice Simulation Rule | Specialise Divergence Tester Invoice Simulation Rule | Specialise Divergence Tester
Invoice Simulation Rule | String Divergence Tester Invoice Simulation Rule | String Divergence Tester
Invoice Simulation Rule | Variation Divergence Tester Invoice Simulation Rule | Variation Divergence Tester
Invoice Transaction Simulation Rule | Accounting Rule Cell
Invoice Transaction Simulation Rule | Category Membership Divergence Tester Invoice Transaction Simulation Rule | Category Membership Divergence Tester
Invoice Transaction Simulation Rule | DateTime Divergence Tester Invoice Transaction Simulation Rule | DateTime Divergence Tester
Invoice Transaction Simulation Rule | Float Divergence Tester Invoice Transaction Simulation Rule | Float Divergence Tester
......
...@@ -4,7 +4,6 @@ Coordinate ...@@ -4,7 +4,6 @@ Coordinate
StringAttributeMatchConstraint StringAttributeMatchConstraint
AttributeUnicityConstraint AttributeUnicityConstraint
AccountingPreference AccountingPreference
AccountingRuleCellLine
AccountingTransactionLineConstraint AccountingTransactionLineConstraint
AcquiredProperty AcquiredProperty
ActionInformation ActionInformation
......
...@@ -93,7 +93,9 @@ class TestAccountingRulesMixin: ...@@ -93,7 +93,9 @@ class TestAccountingRulesMixin:
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" Return the list of business templates. """ """ Return the list of business templates. """
return ('erp5_base','erp5_pdm', 'erp5_simulation', 'erp5_trade', return ('erp5_base','erp5_pdm', 'erp5_simulation', 'erp5_trade',
'erp5_accounting', 'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_accounting',
'erp5_invoicing', 'erp5_simplified_invoicing',
'erp5_accounting_simulation_legacy',
'erp5_simulation_test') 'erp5_simulation_test')
def getAccountModule(self): def getAccountModule(self):
......
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