Commit fd72bda4 authored by Rafael Monnerat's avatar Rafael Monnerat

Validate Currency created by the Configurator Item

The related tests were updated for check this change.
parent 7afdf612
...@@ -281,9 +281,7 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin): ...@@ -281,9 +281,7 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
currency_list = self.getBusinessConfigurationObjectList(business_configuration, 'Currency') currency_list = self.getBusinessConfigurationObjectList(business_configuration, 'Currency')
self.assertNotEquals(len(currency_list), 0) self.assertNotEquals(len(currency_list), 0)
for currency in currency_list: for currency in currency_list:
# XXX FIXME: should the currency be validated by After Configuration Script? self.assertEquals('validated', currency.getValidationState())
# On tiolive it is not validated, is there any reason?
# self.assertEquals('validated', currency.getValidationState())
currency.Base_checkConsistency() currency.Base_checkConsistency()
def stepCheckAlarmList(self, sequence=None, sequence_list=None, **kw): def stepCheckAlarmList(self, sequence=None, sequence_list=None, **kw):
......
...@@ -72,7 +72,7 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject): ...@@ -72,7 +72,7 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject):
title = title, title = title,
reference = reference, reference = reference,
base_unit_quantity = base_unit_quantity) base_unit_quantity = base_unit_quantity)
currency.validate()
business_configuration.setGlobalConfigurationAttr(currency_id=currency.getId()) business_configuration.setGlobalConfigurationAttr(currency_id=currency.getId())
## add to customer template ## add to customer template
self.install(currency, business_configuration) self.install(currency, business_configuration)
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