Commit 399caf39 authored by Rafael Monnerat's avatar Rafael Monnerat

Move solvers, rules and code from erp5_simulation_test to erp5_configurator_standard_*_template

 - Solvers were moved to erp5_configurator_standard_solver
 - trade related code and rules to  erp5_configurator_standard_trade_template
 - accounting related code and rules to  erp5_configurator_standard_accounting_template
 - invoicing related code and rules to  erp5_configurator_standard_invoicing_template

Code were moved and splited to several diferent business templates. The rules
and related code should be used only as template.
parent 65f93d4c
...@@ -61,6 +61,10 @@ bt5_installation_list = (\'erp5_dhtml_style\',\n ...@@ -61,6 +61,10 @@ bt5_installation_list = (\'erp5_dhtml_style\',\n
\'erp5_simplified_invoicing\',\n \'erp5_simplified_invoicing\',\n
\'erp5_trade_knowledge_pad\',\n \'erp5_trade_knowledge_pad\',\n
\'erp5_crm_knowledge_pad\',\n \'erp5_crm_knowledge_pad\',\n
\'erp5_configurator_standard_solver\',\n
\'erp5_configurator_standard_trade_template\',\n
\'erp5_configurator_standard_accounting_template\',\n
\'erp5_configurator_standard_invoicing_template\',\n
\'erp5_ods_style\',\n \'erp5_ods_style\',\n
\'erp5_odt_style\',\n \'erp5_odt_style\',\n
\'erp5_ooo_import\',\n \'erp5_ooo_import\',\n
......
...@@ -58,10 +58,6 @@ This is not used anymore and is left only as an example.</string> </value> ...@@ -58,10 +58,6 @@ This is not used anymore and is left only as an example.</string> </value>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>new_accounting_transaction_root_simulation_rule</string> </value> <value> <string>new_accounting_transaction_root_simulation_rule</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>1</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Accounting Transaction Root Simulation Rule</string> </value> <value> <string>Accounting Transaction Root Simulation Rule</string> </value>
......
...@@ -64,10 +64,6 @@ ...@@ -64,10 +64,6 @@
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>20</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Payment Simulation Rule</string> </value> <value> <string>Payment Simulation Rule</string> </value>
......
2012-01-12 Rafael
* Initial release with the code copied from erp5_simulation_test
\ No newline at end of file
Contains rules and builders.
Rules will not work as it is because it lacks of categories.
\ No newline at end of file
This business template contains Rules and Builders related to accounting to be used as template for each project create their own.
\ No newline at end of file
portal_rules/new_accounting_transaction_root_simulation_rule
portal_rules/new_accounting_transaction_root_simulation_rule/**
portal_rules/new_invoice_root_simulation_rule
portal_rules/new_invoice_root_simulation_rule/**
portal_rules/new_payment_simulation_rule
portal_rules/new_payment_simulation_rule/**
\ No newline at end of file
erp5_configurator_standard_accounting_template
\ No newline at end of file
...@@ -6,6 +6,30 @@ ...@@ -6,6 +6,30 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>_count</string> </key> <key> <string>_count</string> </key>
<value> <value>
...@@ -58,10 +82,6 @@ ...@@ -58,10 +82,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>new_invoice_simulation_rule</string> </value> <value> <string>new_invoice_simulation_rule</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>20</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Invoice Simulation Rule</string> </value> <value> <string>Invoice Simulation Rule</string> </value>
......
...@@ -88,10 +88,6 @@ ...@@ -88,10 +88,6 @@
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>23</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Invoice Transaction Simulation Rule</string> </value> <value> <string>Invoice Transaction Simulation Rule</string> </value>
......
2012-01-12 Rafael
* Initial release with the code copied from erp5_simulation_test
\ No newline at end of file
Contains rules and builders.
Rules will not work as it is because it lacks of categories.
\ No newline at end of file
This business template contains Rules and Builders related to invoicing to be used as template for each project create their own.
\ No newline at end of file
portal_deliveries/purchase_invoice_builder
portal_deliveries/purchase_invoice_builder/**
portal_deliveries/purchase_invoice_transaction_builder
portal_deliveries/purchase_invoice_transaction_builder/**
portal_deliveries/purchase_invoice_transaction_trade_model_builder
portal_deliveries/purchase_invoice_transaction_trade_model_builder/**
portal_deliveries/sale_invoice_builder
portal_deliveries/sale_invoice_builder/**
portal_deliveries/sale_invoice_transaction_builder
portal_deliveries/sale_invoice_transaction_builder/**
portal_deliveries/sale_invoice_transaction_trade_model_builder
portal_deliveries/sale_invoice_transaction_trade_model_builder/**
portal_rules/new_invoice_simulation_rule
portal_rules/new_invoice_simulation_rule/**
portal_rules/new_invoice_transaction_simulation_rule
portal_rules/new_invoice_transaction_simulation_rule/**
portal_rules/new_trade_model_simulation_rule
portal_rules/new_trade_model_simulation_rule/**
\ No newline at end of file
erp5_configurator_standard_invoicing_template
\ 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_configurator_standard_solver</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2010-08-10 rafael
* Solved released as independent business template
2010-08-10 JPS
* move solvers to path
\ No newline at end of file
Contains:
- Only Solvers
\ No newline at end of file
erp5_simulation
\ No newline at end of file
This Business template contains generic solvers for simulation. It is not recommended used those solvers at it is, but use it as template for create your own solvers.
\ No newline at end of file
seb
jps
rafael
\ No newline at end of file
portal_solvers/Accept Solver
portal_solvers/Accept Solver/*
portal_solvers/Adopt Solver
portal_solvers/Adopt Solver/*
portal_solvers/FIFO Delivery Solver
portal_solvers/FIFO Delivery Solver/*
portal_solvers/LIFO Delivery Solver
portal_solvers/LIFO Delivery Solver/*
portal_solvers/Minimise Price Delivery Solver
portal_solvers/Minimise Price Delivery Solver/*
portal_solvers/Production Reduction Solver
portal_solvers/Production Reduction Solver/*
portal_solvers/Quantity Cancel Solver
portal_solvers/Quantity Cancel Solver/*
portal_solvers/Quantity Split Solver
portal_solvers/Quantity Split Solver/*
portal_solvers/Trade Model Solver
portal_solvers/Trade Model Solver/*
portal_solvers/Unify Solver
portal_solvers/Unify Solver/*
\ No newline at end of file
erp5_configurator_standard_solver
\ No newline at end of file
erp5_configurator_standard_solver
\ No newline at end of file
...@@ -58,10 +58,6 @@ ...@@ -58,10 +58,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>new_delivery_simulation_rule</string> </value> <value> <string>new_delivery_simulation_rule</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>20</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Delivery Simulation Rule</string> </value> <value> <string>Delivery Simulation Rule</string> </value>
......
...@@ -58,10 +58,6 @@ ...@@ -58,10 +58,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>new_order_root_simulation_rule</string> </value> <value> <string>new_order_root_simulation_rule</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>19</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Order Root Simulation Rule</string> </value> <value> <string>Order Root Simulation Rule</string> </value>
......
2012-01-12 Rafael
* Initial release with the code copied from erp5_simulation_test
\ No newline at end of file
Contains rules and builders.
Rules will not work as it is because it lacks of categories.
\ No newline at end of file
This business template contains Rules and Builders related to trade to be used as template for each project create their own.
\ No newline at end of file
portal_deliveries/internal_packing_list_builder
portal_deliveries/internal_packing_list_builder/**
portal_deliveries/purchase_packing_list_builder
portal_deliveries/purchase_packing_list_builder/**
portal_deliveries/sale_packing_list_builder
portal_deliveries/sale_packing_list_builder/**
portal_rules/new_delivery_root_simulation_rule
portal_rules/new_delivery_root_simulation_rule/**
portal_rules/new_delivery_simulation_rule
portal_rules/new_delivery_simulation_rule/**
portal_rules/new_order_root_simulation_rule
portal_rules/new_order_root_simulation_rule/**
\ No newline at end of file
erp5_configurator_standard_trade_template
\ No newline at end of file
2012-01-12 Rafael
* Moved Rules, solvers and builders to configurator related business templates.
2012-01-05 Kazuhiko 2012-01-05 Kazuhiko
* move builders from erp5_simplified_invoicing to erp5_simulation_test BT. * move builders from erp5_simplified_invoicing to erp5_simulation_test BT.
* move builders from erp5_trade to erp5_simulation_test BT. * move builders from erp5_trade to erp5_simulation_test BT.
......
Contains: Contains:
- rules, categories and business processes from erp5_simulation - categories and business processes from erp5_simulation
Note: Probably not complete. Note: Probably not complete.
TODO: make allowed content types for solver automatic TODO: make allowed content types for solver automatic
\ No newline at end of file
- alarms - alarms
- BPM - BPM
- default categories for trade_phase & trade_state - default categories for trade_phase & trade_state
- default rules
- default testers
- some builders
- some solvers, that are only meant for "templates" and should not be used in real applications as they are
\ No newline at end of file
31 33
\ No newline at end of file \ No newline at end of file
portal_solvers/Accept Solver
portal_solvers/Accept Solver/*
portal_solvers/Adopt Solver
portal_solvers/Adopt Solver/*
portal_solvers/FIFO Delivery Solver
portal_solvers/FIFO Delivery Solver/*
portal_solvers/LIFO Delivery Solver
portal_solvers/LIFO Delivery Solver/*
portal_solvers/Minimise Price Delivery Solver
portal_solvers/Minimise Price Delivery Solver/*
portal_solvers/Production Reduction Solver
portal_solvers/Production Reduction Solver/*
portal_solvers/Quantity Cancel Solver
portal_solvers/Quantity Cancel Solver/*
portal_solvers/Quantity Split Solver
portal_solvers/Quantity Split Solver/*
portal_solvers/Trade Model Solver
portal_solvers/Trade Model Solver/*
portal_solvers/Unify Solver
portal_solvers/Unify Solver/*
portal_deliveries/internal_packing_list_builder
portal_deliveries/internal_packing_list_builder/**
portal_deliveries/purchase_invoice_builder
portal_deliveries/purchase_invoice_builder/**
portal_deliveries/purchase_invoice_transaction_builder
portal_deliveries/purchase_invoice_transaction_builder/**
portal_deliveries/purchase_invoice_transaction_trade_model_builder
portal_deliveries/purchase_invoice_transaction_trade_model_builder/**
portal_deliveries/purchase_packing_list_builder
portal_deliveries/purchase_packing_list_builder/**
portal_deliveries/sale_invoice_builder
portal_deliveries/sale_invoice_builder/**
portal_deliveries/sale_invoice_transaction_builder
portal_deliveries/sale_invoice_transaction_builder/**
portal_deliveries/sale_invoice_transaction_trade_model_builder
portal_deliveries/sale_invoice_transaction_trade_model_builder/**
portal_deliveries/sale_packing_list_builder
portal_deliveries/sale_packing_list_builder/**
portal_rules/new_accounting_transaction_root_simulation_rule
portal_rules/new_accounting_transaction_root_simulation_rule/**
portal_rules/new_delivery_root_simulation_rule
portal_rules/new_delivery_root_simulation_rule/**
portal_rules/new_delivery_simulation_rule
portal_rules/new_delivery_simulation_rule/**
portal_rules/new_invoice_root_simulation_rule
portal_rules/new_invoice_root_simulation_rule/**
portal_rules/new_invoice_simulation_rule
portal_rules/new_invoice_simulation_rule/**
portal_rules/new_invoice_transaction_simulation_rule
portal_rules/new_invoice_transaction_simulation_rule/**
portal_rules/new_order_root_simulation_rule
portal_rules/new_order_root_simulation_rule/**
portal_rules/new_payment_simulation_rule
portal_rules/new_payment_simulation_rule/**
portal_rules/new_trade_model_simulation_rule
portal_rules/new_trade_model_simulation_rule/**
\ No newline at end of file
...@@ -7,59 +7,3 @@ portal_alarms/packing_list_builder_alarm ...@@ -7,59 +7,3 @@ portal_alarms/packing_list_builder_alarm
portal_categories/trade_phase/default portal_categories/trade_phase/default
portal_categories/trade_phase/default/** portal_categories/trade_phase/default/**
portal_categories/trade_state/** portal_categories/trade_state/**
portal_deliveries/internal_packing_list_builder
portal_deliveries/internal_packing_list_builder/**
portal_deliveries/purchase_invoice_builder
portal_deliveries/purchase_invoice_builder/**
portal_deliveries/purchase_invoice_transaction_builder
portal_deliveries/purchase_invoice_transaction_builder/**
portal_deliveries/purchase_invoice_transaction_trade_model_builder
portal_deliveries/purchase_invoice_transaction_trade_model_builder/**
portal_deliveries/purchase_packing_list_builder
portal_deliveries/purchase_packing_list_builder/**
portal_deliveries/sale_invoice_builder
portal_deliveries/sale_invoice_builder/**
portal_deliveries/sale_invoice_transaction_builder
portal_deliveries/sale_invoice_transaction_builder/**
portal_deliveries/sale_invoice_transaction_trade_model_builder
portal_deliveries/sale_invoice_transaction_trade_model_builder/**
portal_deliveries/sale_packing_list_builder
portal_deliveries/sale_packing_list_builder/**
portal_rules/new_accounting_transaction_root_simulation_rule
portal_rules/new_accounting_transaction_root_simulation_rule/**
portal_rules/new_delivery_root_simulation_rule
portal_rules/new_delivery_root_simulation_rule/**
portal_rules/new_delivery_simulation_rule
portal_rules/new_delivery_simulation_rule/**
portal_rules/new_invoice_root_simulation_rule
portal_rules/new_invoice_root_simulation_rule/**
portal_rules/new_invoice_simulation_rule
portal_rules/new_invoice_simulation_rule/**
portal_rules/new_invoice_transaction_simulation_rule
portal_rules/new_invoice_transaction_simulation_rule/**
portal_rules/new_order_root_simulation_rule
portal_rules/new_order_root_simulation_rule/**
portal_rules/new_payment_simulation_rule
portal_rules/new_payment_simulation_rule/**
portal_rules/new_trade_model_simulation_rule
portal_rules/new_trade_model_simulation_rule/**
portal_solvers/Accept Solver
portal_solvers/Accept Solver/*
portal_solvers/Adopt Solver
portal_solvers/Adopt Solver/*
portal_solvers/FIFO Delivery Solver
portal_solvers/FIFO Delivery Solver/*
portal_solvers/LIFO Delivery Solver
portal_solvers/LIFO Delivery Solver/*
portal_solvers/Minimise Price Delivery Solver
portal_solvers/Minimise Price Delivery Solver/*
portal_solvers/Production Reduction Solver
portal_solvers/Production Reduction Solver/*
portal_solvers/Quantity Cancel Solver
portal_solvers/Quantity Cancel Solver/*
portal_solvers/Quantity Split Solver
portal_solvers/Quantity Split Solver/*
portal_solvers/Trade Model Solver
portal_solvers/Trade Model Solver/*
portal_solvers/Unify Solver
portal_solvers/Unify Solver/*
\ No newline at end of file
...@@ -236,7 +236,11 @@ class AccountingTestCase(ERP5TypeTestCase): ...@@ -236,7 +236,11 @@ class AccountingTestCase(ERP5TypeTestCase):
return ('erp5_core_proxy_field_legacy', return ('erp5_core_proxy_field_legacy',
'erp5_base', 'erp5_pdm', 'erp5_simulation', 'erp5_trade', 'erp5_base', 'erp5_pdm', 'erp5_simulation', 'erp5_trade',
'erp5_accounting', 'erp5_project', 'erp5_accounting_ui_test', 'erp5_accounting', 'erp5_project', 'erp5_accounting_ui_test',
'erp5_ods_style', 'erp5_simulation_test') 'erp5_ods_style',
'erp5_configurator_standard_trade_template',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_invoicing_template',
'erp5_simulation_test')
class TestAccounts(AccountingTestCase): class TestAccounts(AccountingTestCase):
......
...@@ -137,7 +137,10 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase): ...@@ -137,7 +137,10 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase):
return ('erp5_core_proxy_field_legacy', 'erp5_base', 'erp5_pdm', return ('erp5_core_proxy_field_legacy', 'erp5_base', 'erp5_pdm',
'erp5_simulation', 'erp5_trade', 'erp5_accounting', 'erp5_invoicing', 'erp5_simulation', 'erp5_trade', 'erp5_accounting', 'erp5_invoicing',
'erp5_advanced_invoicing', 'erp5_apparel', 'erp5_project', 'erp5_advanced_invoicing', 'erp5_apparel', 'erp5_project',
'erp5_simulation_test') 'erp5_configurator_standard_trade_template',
'erp5_configurator_standard_invoicing_template',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_solver', 'erp5_simulation_test')
def stepStartRelatedInvoice(self, sequence=None, sequence_list=None, **kw): def stepStartRelatedInvoice(self, sequence=None, sequence_list=None, **kw):
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
......
...@@ -43,6 +43,10 @@ class TestBPMMixin(ERP5TypeTestCase): ...@@ -43,6 +43,10 @@ class TestBPMMixin(ERP5TypeTestCase):
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_core_proxy_field_legacy', 'erp5_core_proxy_field_legacy',
'erp5_configurator_standard_solver',
'erp5_configurator_standard_trade_template',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_invoicing_template',
'erp5_simulation_test') 'erp5_simulation_test')
business_process_portal_type = 'Business Process' business_process_portal_type = 'Business Process'
......
...@@ -64,6 +64,10 @@ class TestBudget(ERP5TypeTestCase): ...@@ -64,6 +64,10 @@ class TestBudget(ERP5TypeTestCase):
'erp5_base', 'erp5_pdm', 'erp5_simulation', 'erp5_trade', 'erp5_accounting', 'erp5_base', 'erp5_pdm', 'erp5_simulation', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_invoicing', 'erp5_simplified_invoicing',
'erp5_accounting_ui_test', 'erp5_budget', 'erp5_accounting_ui_test', 'erp5_budget',
'erp5_configurator_standard_solver',
'erp5_configurator_standard_trade_template',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_invoicing_template',
'erp5_simulation_test') 'erp5_simulation_test')
# creation and basic functionalities # creation and basic functionalities
......
...@@ -172,6 +172,10 @@ class TestConversionInSimulation(AccountingTestCase): ...@@ -172,6 +172,10 @@ class TestConversionInSimulation(AccountingTestCase):
'erp5_accounting_ui_test', 'erp5_accounting_ui_test',
'erp5_invoicing', 'erp5_invoicing',
'erp5_simplified_invoicing', 'erp5_simplified_invoicing',
'erp5_configurator_standard_solver',
'erp5_configurator_standard_trade_template',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_invoicing_template',
'erp5_simulation_test', 'erp5_simulation_test',
) )
......
...@@ -106,6 +106,7 @@ class TestCommerce(ERP5TypeTestCase): ...@@ -106,6 +106,7 @@ class TestCommerce(ERP5TypeTestCase):
'erp5_simulation', 'erp5_simulation',
'erp5_trade', 'erp5_trade',
'erp5_commerce', 'erp5_commerce',
'erp5_configurator_standard_trade_template',
'erp5_simulation_test') 'erp5_simulation_test')
def afterSetUp(self): def afterSetUp(self):
......
...@@ -89,6 +89,9 @@ class TestImmobilisationMixin(ERP5TypeTestCase): ...@@ -89,6 +89,9 @@ class TestImmobilisationMixin(ERP5TypeTestCase):
"erp5_simplified_invoicing", "erp5_simplified_invoicing",
"erp5_immobilisation", "erp5_immobilisation",
"erp5_computer_immobilisation", # In order to use items "erp5_computer_immobilisation", # In order to use items
'erp5_configurator_standard_trade_template',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_invoicing_template',
"erp5_simulation_test", "erp5_simulation_test",
) )
......
...@@ -75,6 +75,7 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase): ...@@ -75,6 +75,7 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase):
"""Business Templates required for this test. """Business Templates required for this test.
""" """
return ('erp5_base', 'erp5_pdm', 'erp5_simulation', 'erp5_trade', return ('erp5_base', 'erp5_pdm', 'erp5_simulation', 'erp5_trade',
'erp5_configurator_standard_trade_template',
'erp5_apparel', 'erp5_simulation_test') 'erp5_apparel', 'erp5_simulation_test')
def setUpPreferences(self): def setUpPreferences(self):
......
...@@ -183,6 +183,7 @@ class InventoryAPITestCase(ERP5TypeTestCase): ...@@ -183,6 +183,7 @@ class InventoryAPITestCase(ERP5TypeTestCase):
""" """
return ('erp5_base', 'erp5_pdm', 'erp5_dummy_movement', 'erp5_simulation', return ('erp5_base', 'erp5_pdm', 'erp5_dummy_movement', 'erp5_simulation',
'erp5_trade', 'erp5_apparel', 'erp5_project', 'erp5_trade', 'erp5_apparel', 'erp5_project',
'erp5_configurator_standard_trade_template',
'erp5_simulation_test') 'erp5_simulation_test')
# TODO: move this to a base class {{{ # TODO: move this to a base class {{{
......
...@@ -81,7 +81,9 @@ class TestInvoiceMixin(TestPackingListMixin): ...@@ -81,7 +81,9 @@ class TestInvoiceMixin(TestPackingListMixin):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
return super(TestInvoiceMixin, self).getBusinessTemplateList() + ( return super(TestInvoiceMixin, self).getBusinessTemplateList() + (
'erp5_accounting', 'erp5_invoicing', 'erp5_simplified_invoicing') 'erp5_accounting', 'erp5_invoicing', 'erp5_simplified_invoicing',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_invoicing_template')
@UnrestrictedMethod @UnrestrictedMethod
def createCategories(self): def createCategories(self):
......
...@@ -1003,7 +1003,8 @@ class TestItemScripts(ERP5TypeTestCase): ...@@ -1003,7 +1003,8 @@ class TestItemScripts(ERP5TypeTestCase):
""" """
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_pdm', 'erp5_simulation', 'erp5_trade', return ('erp5_base', 'erp5_pdm', 'erp5_simulation', 'erp5_trade',
'erp5_item', 'erp5_simulation_test') 'erp5_item', 'erp5_configurator_standard_solver',
'erp5_simulation_test')
def afterSetUp(self): def afterSetUp(self):
self.validateRules() self.validateRules()
......
...@@ -47,6 +47,7 @@ class TestOpenOrder(ERP5TypeTestCase): ...@@ -47,6 +47,7 @@ class TestOpenOrder(ERP5TypeTestCase):
'erp5_trade', 'erp5_trade',
'erp5_open_trade', 'erp5_open_trade',
'erp5_open_trade_periodicity_line', 'erp5_open_trade_periodicity_line',
'erp5_configurator_standard_trade_template',
'erp5_simulation_test') 'erp5_simulation_test')
def afterSetUp(self): def afterSetUp(self):
......
...@@ -63,10 +63,11 @@ class TestOrderMixin(SubcontentReindexingWrapper): ...@@ -63,10 +63,11 @@ class TestOrderMixin(SubcontentReindexingWrapper):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" """
""" """
return ('erp5_core_proxy_field_legacy', return ('erp5_core_proxy_field_legacy', 'erp5_base','erp5_pdm',
'erp5_base','erp5_pdm', 'erp5_simulation', 'erp5_trade', 'erp5_simulation', 'erp5_trade', 'erp5_apparel', 'erp5_project',
'erp5_apparel', 'erp5_project', 'erp5_simulation_test', 'erp5_configurator_standard_solver',
'erp5_administration') 'erp5_configurator_standard_trade_template',
'erp5_simulation_test', 'erp5_administration')
def login(self, quiet=0, run=1): def login(self, quiet=0, run=1):
uf = self.getPortal().acl_users uf = self.getPortal().acl_users
......
...@@ -52,6 +52,7 @@ class TestProject(ERP5TypeTestCase): ...@@ -52,6 +52,7 @@ class TestProject(ERP5TypeTestCase):
'erp5_simulation', 'erp5_simulation',
'erp5_trade', 'erp5_trade',
'erp5_project', 'erp5_project',
'erp5_configurator_standard_trade_template',
'erp5_simulation_test') 'erp5_simulation_test')
def afterSetUp(self): def afterSetUp(self):
......
...@@ -64,6 +64,8 @@ class TestResource(ERP5TypeTestCase): ...@@ -64,6 +64,8 @@ class TestResource(ERP5TypeTestCase):
""" """
# Trade is needeed for pricing # Trade is needeed for pricing
return ('erp5_base', 'erp5_pdm', 'erp5_simulation', 'erp5_trade', return ('erp5_base', 'erp5_pdm', 'erp5_simulation', 'erp5_trade',
'erp5_configurator_standard_trade_template',
'erp5_configurator_standard_solver',
'erp5_apparel', 'erp5_simulation_test') 'erp5_apparel', 'erp5_simulation_test')
def getTitle(self): def getTitle(self):
......
...@@ -101,7 +101,9 @@ class TestRuleMixin(TestOrderMixin): ...@@ -101,7 +101,9 @@ class TestRuleMixin(TestOrderMixin):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
return TestOrderMixin.getBusinessTemplateList(self) + ('erp5_accounting', return TestOrderMixin.getBusinessTemplateList(self) + ('erp5_accounting',
'erp5_invoicing',) 'erp5_invoicing',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_invoicing_template')
def createPackingList(self): def createPackingList(self):
""" """
......
...@@ -121,6 +121,8 @@ class TestTaskMixin: ...@@ -121,6 +121,8 @@ class TestTaskMixin:
""" """
return ('erp5_base','erp5_pdm', 'erp5_simulation', 'erp5_trade', return ('erp5_base','erp5_pdm', 'erp5_simulation', 'erp5_trade',
'erp5_project', 'erp5_simulation_test', 'erp5_project', 'erp5_simulation_test',
'erp5_configurator_standard_solver',
'erp5_configurator_standard_trade_template',
'erp5_core_proxy_field_legacy') 'erp5_core_proxy_field_legacy')
# def stepLogin(self, **kw): # def stepLogin(self, **kw):
......
...@@ -45,6 +45,7 @@ class TestTaskReporting(ERP5ReportTestCase): ...@@ -45,6 +45,7 @@ class TestTaskReporting(ERP5ReportTestCase):
"""Returns list of BT to be installed.""" """Returns list of BT to be installed."""
return ('erp5_core_proxy_field_legacy', return ('erp5_core_proxy_field_legacy',
'erp5_base','erp5_pdm', 'erp5_simulation', 'erp5_trade', 'erp5_base','erp5_pdm', 'erp5_simulation', 'erp5_trade',
'erp5_configurator_standard_trade_template',
'erp5_project', 'erp5_simulation_test') 'erp5_project', 'erp5_simulation_test')
@reindex @reindex
......
...@@ -56,6 +56,10 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase): ...@@ -56,6 +56,10 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
'erp5_knowledge_pad', 'erp5_knowledge_pad',
'erp5_accounting', 'erp5_accounting',
'erp5_invoicing', 'erp5_invoicing',
'erp5_configurator_standard_solver',
'erp5_configurator_standard_trade_template',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_invoicing_template',
'erp5_trade_knowledge_pad', 'erp5_trade_knowledge_pad',
'erp5_crm_knowledge_pad', 'erp5_crm_knowledge_pad',
'erp5_simplified_invoicing', 'erp5_simplified_invoicing',
...@@ -72,6 +76,10 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase): ...@@ -72,6 +76,10 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
'erp5_simplified_invoicing', 'erp5_simplified_invoicing',
'erp5_trade_knowledge_pad', 'erp5_trade_knowledge_pad',
'erp5_crm_knowledge_pad', 'erp5_crm_knowledge_pad',
'erp5_configurator_standard_solver',
'erp5_configurator_standard_trade_template',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_invoicing_template',
'erp5_ods_style', 'erp5_ods_style',
'erp5_odt_style', 'erp5_odt_style',
'erp5_ooo_import') 'erp5_ooo_import')
......
...@@ -25,12 +25,19 @@ ...@@ -25,12 +25,19 @@
# #
############################################################################## ##############################################################################
def Legacy_getBusinessTemplateList(cls): def Legacy_getBusinessTemplateList(cls):
getBusinessTemplateList = cls.getBusinessTemplateList getBusinessTemplateList = cls.getBusinessTemplateList
def Legacy_getBusinessTemplateList(self): def Legacy_getBusinessTemplateList(self):
bt_list = [] bt_list = []
IGNORE_BUSINESS_TEMPLATE_LIST = ['erp5_simulation_test',
'erp5_configurator_standard_solver',
'erp5_configurator_standard_trade_template',
'erp5_configurator_standard_accounting_template',
'erp5_configurator_standard_invoicing_template']
for bt in getBusinessTemplateList(self): for bt in getBusinessTemplateList(self):
if bt != 'erp5_simulation_test' and bt not in bt_list: if bt not in IGNORE_BUSINESS_TEMPLATE_LIST and bt not in bt_list:
bt_list.append(bt) bt_list.append(bt)
if bt == 'erp5_simulation': if bt == 'erp5_simulation':
bt_list.append(bt + '_legacy') bt_list.append(bt + '_legacy')
......
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