Commit 048fd075 authored by Jérome Perrin's avatar Jérome Perrin

configurator_standar: enable CurrencyConstraint on Currencies

So that we keep the same behavior of having required and non-duplicate
references on currencies
parent 5892f30f
...@@ -25,3 +25,7 @@ for portal_type in ['Purchase Order Line', 'Sale Order Line','Sale Packing List ...@@ -25,3 +25,7 @@ for portal_type in ['Purchase Order Line', 'Sale Order Line','Sale Packing List
configuration_save.addConfigurationItem("Portal Type Configurator Item", configuration_save.addConfigurationItem("Portal Type Configurator Item",
target_portal_type='Inventory', target_portal_type='Inventory',
add_propertysheet_list=('InventoryConstraint',)) add_propertysheet_list=('InventoryConstraint',))
configuration_save.addConfigurationItem("Portal Type Configurator Item",
target_portal_type='Currency',
add_propertysheet_list=('CurrencyConstraint',))
...@@ -919,6 +919,7 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin): ...@@ -919,6 +919,7 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self.assertIn('TradeOrder', portal_types['Sale Order'].getTypePropertySheetList()) self.assertIn('TradeOrder', portal_types['Sale Order'].getTypePropertySheetList())
self.assertIn('TradeOrderLine', portal_types['Sale Order Line'].getTypePropertySheetList()) self.assertIn('TradeOrderLine', portal_types['Sale Order Line'].getTypePropertySheetList())
self.assertIn('InventoryConstraint', portal_types['Inventory'].getTypePropertySheetList()) self.assertIn('InventoryConstraint', portal_types['Inventory'].getTypePropertySheetList())
self.assertIn('CurrencyConstraint', portal_types['Currency'].getTypePropertySheetList())
def stepCheckSaleOrderSimulation(self, sequence=None, sequence_list=None, **kw): def stepCheckSaleOrderSimulation(self, sequence=None, sequence_list=None, **kw):
""" """
......
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