diff --git a/product/ERP5Configurator/Document/CurrencyConfiguratorItem.py b/product/ERP5Configurator/Document/CurrencyConfiguratorItem.py index 0b3d0dde087db99df718956b8c5c4f558ac8e708..4d37f73baa1dc8fa70bab2ea1df6f37b0d15ccbb 100644 --- a/product/ERP5Configurator/Document/CurrencyConfiguratorItem.py +++ b/product/ERP5Configurator/Document/CurrencyConfiguratorItem.py @@ -58,8 +58,8 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject): , PropertySheet.Reference ) def build(self, business_configuration): - portal = self.getPortalObject() - currency_module = portal._getOb('currency_module') + currency_module = self.getPortalObject().currency_module + title = self.getTitle() reference = self.getReference() base_unit_quantity = self.getBaseUnitQuantity() @@ -72,5 +72,7 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject): title = title, reference = reference, base_unit_quantity = base_unit_quantity) + + business_configuration.setGlobalConfigurationAttr(currency_id=currency.getId()) ## add to customer template self.install(currency, business_configuration)