Commit 6da7754b authored by Rafael Monnerat's avatar Rafael Monnerat

Drop support to old discount and Tax legacy.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42154 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64e9552f
...@@ -100,8 +100,6 @@ if business_template is not None:\n ...@@ -100,8 +100,6 @@ if business_template is not None:\n
if obj.getPortalType() in (\'Person\', \n if obj.getPortalType() in (\'Person\', \n
\'Organisation\', \n \'Organisation\', \n
\'Account\', \n \'Account\', \n
\'Tax\',\n
\'Discount\', \n
\'Service\', \'Product\',\n \'Service\', \'Product\',\n
\'Sale Trade Condition\', \n \'Sale Trade Condition\', \n
\'Purchase Trade Condition\',\n \'Purchase Trade Condition\',\n
...@@ -157,8 +155,7 @@ module_business_application_map = {\'base\': (\'currency_module\',\n ...@@ -157,8 +155,7 @@ module_business_application_map = {\'base\': (\'currency_module\',\n
\'image_module\',\n \'image_module\',\n
\'document_ingestion_module\',\n \'document_ingestion_module\',\n
\'web_page_module\',),\n \'web_page_module\',),\n
\'trade\': (\'discount_module\',\n \'trade\': (\'internal_packing_list_module\',\n
\'internal_packing_list_module\',\n
\'inventory_module\',\n \'inventory_module\',\n
\'purchase_order_module\',\n \'purchase_order_module\',\n
\'purchase_packing_list_module\',\n \'purchase_packing_list_module\',\n
...@@ -166,8 +163,7 @@ module_business_application_map = {\'base\': (\'currency_module\',\n ...@@ -166,8 +163,7 @@ module_business_application_map = {\'base\': (\'currency_module\',\n
\'returned_sale_packing_list_module\',\n \'returned_sale_packing_list_module\',\n
\'sale_order_module\',\n \'sale_order_module\',\n
\'sale_packing_list_module\',\n \'sale_packing_list_module\',\n
\'sale_trade_condition_module\',\n \'sale_trade_condition_module\'),\n
\'tax_module\',),\n
\'pdm\': (\'component_module\',\n \'pdm\': (\'component_module\',\n
\'product_module\',\n \'product_module\',\n
\'purchase_supply_module\',\n \'purchase_supply_module\',\n
......
...@@ -1253,10 +1253,6 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): ...@@ -1253,10 +1253,6 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin):
self.portal.internal_packing_list_module.getBusinessApplicationTitle()) self.portal.internal_packing_list_module.getBusinessApplicationTitle())
self.assertEquals('Trade', self.assertEquals('Trade',
self.portal.returned_sale_packing_list_module.getBusinessApplicationTitle()) self.portal.returned_sale_packing_list_module.getBusinessApplicationTitle())
self.assertEquals('Trade',
self.portal.discount_module.getBusinessApplicationTitle())
self.assertEquals('Trade',
self.portal.tax_module.getBusinessApplicationTitle())
self.assertEquals(set([self.portal.sale_order_module, self.assertEquals(set([self.portal.sale_order_module,
self.portal.purchase_order_module, self.portal.purchase_order_module,
self.portal.sale_trade_condition_module, self.portal.sale_trade_condition_module,
...@@ -1266,8 +1262,6 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): ...@@ -1266,8 +1262,6 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin):
self.portal.internal_packing_list_module, self.portal.internal_packing_list_module,
self.portal.returned_sale_packing_list_module, self.portal.returned_sale_packing_list_module,
self.portal.inventory_module, self.portal.inventory_module,
self.portal.discount_module,
self.portal.tax_module,
ba.trade]), ba.trade]),
set(ba.trade.getBusinessApplicationRelatedValueList())) set(ba.trade.getBusinessApplicationRelatedValueList()))
...@@ -2659,18 +2653,6 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): ...@@ -2659,18 +2653,6 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin):
self.failUnlessUserCanPassWorkflowTransition( self.failUnlessUserCanPassWorkflowTransition(
username, 'confirm_action', pl) username, 'confirm_action', pl)
def stepViewAccessTaxModule(self, sequence=None, sequence_list=None, **kw):
for username in self.all_username_list:
self.assertUserCanViewDocument(username, self.portal.tax_module)
self.assertUserCanAccessDocument(username, self.portal.tax_module)
self.assertUserCanAddDocument(username, self.portal.tax_module)
def stepAddTax(self, sequence=None, sequence_list=None, **kw):
tax = self.portal.tax_module.newContent(portal_type='Tax')
for username in self.all_username_list:
self.assertUserCanViewDocument(username, tax)
self.assertUserCanAccessDocument(username, tax)
# }}} # }}}
# web # web
def stepWebSiteModule(self, sequence=None, sequence_list=None, **kw): def stepWebSiteModule(self, sequence=None, sequence_list=None, **kw):
...@@ -2779,8 +2761,6 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): ...@@ -2779,8 +2761,6 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin):
stepViewAccessAddSalePackingList stepViewAccessAddSalePackingList
stepViewAccessPurchaseOrder stepViewAccessPurchaseOrder
stepPurchasePackingList stepPurchasePackingList
stepViewAccessTaxModule
stepAddTax
stepWebSiteModule stepWebSiteModule
stepPortalContributionsTool stepPortalContributionsTool
stepConfiguredPropertySheets stepConfiguredPropertySheets
......
564 566
\ No newline at end of file \ No newline at end of file
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