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

configure trade preference correctly

parent b76491e2
......@@ -207,12 +207,12 @@ system_prefs = dict(\n
preferred_component_individual_variation_base_category_list = [\'variation\'],\n
preferred_service_individual_variation_base_category_list = [\'variation\'],\n
# trade\n
preferred_supplier_role_list = [\'supplier\'],\n
preferred_client_role_list = [\'client\'],\n
preferred_sale_use_list = [\'trade/sale\'],\n
preferred_purchase_use_list = [\'trade/purchase\'],\n
preferred_packing_use_list = [\'trade/container\'],\n
preferred_tax_use_list=[\'trade/tax\'])\n
preferred_supplier_role_list = [\'role/supplier\'],\n
preferred_client_role_list = [\'role/client\'],\n
preferred_sale_use_list = [\'use/trade/sale\'],\n
preferred_purchase_use_list = [\'use/trade/purchase\'],\n
preferred_packing_use_list = [\'use/trade/container\'],\n
preferred_tax_use_list=[\'use/trade/tax\'])\n
\n
configuration_save.addConfigurationItem(\n
\'System Preference Configurator Item\',\n
......
......@@ -361,12 +361,12 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
preference_tool.getPreferredAccountingTransactionSimulationStateList())
# trade
self.assertEquals(['supplier'], preference_tool.getPreferredSupplierRoleList())
self.assertEquals(['client'], preference_tool.getPreferredClientRoleList())
self.assertEquals(['trade/sale'], preference_tool.getPreferredSaleUseList())
self.assertEquals(['trade/purchase'], preference_tool.getPreferredPurchaseUseList())
self.assertEquals(['trade/container'], preference_tool.getPreferredPackingUseList())
self.assertEquals(['trade/tax'], preference_tool.getPreferredTaxUseList())
self.assertEquals(['role/supplier'], preference_tool.getPreferredSupplierRoleList())
self.assertEquals(['role/client'], preference_tool.getPreferredClientRoleList())
self.assertEquals(['use/trade/sale'], preference_tool.getPreferredSaleUseList())
self.assertEquals(['use/trade/purchase'], preference_tool.getPreferredPurchaseUseList())
self.assertEquals(['use/trade/container'], preference_tool.getPreferredPackingUseList())
self.assertEquals(['use/trade/tax'], preference_tool.getPreferredTaxUseList())
def stepCheckModulesBusinessApplication(self, sequence=None, sequence_list=None, **kw):
"""
......
645
\ No newline at end of file
646
\ 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