Commit b1583003 authored by Rafael Monnerat's avatar Rafael Monnerat

Share currency_id into business configuration.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44912 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eed587e3
...@@ -58,8 +58,8 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject): ...@@ -58,8 +58,8 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject):
, PropertySheet.Reference ) , PropertySheet.Reference )
def build(self, business_configuration): def build(self, business_configuration):
portal = self.getPortalObject() currency_module = self.getPortalObject().currency_module
currency_module = portal._getOb('currency_module')
title = self.getTitle() title = self.getTitle()
reference = self.getReference() reference = self.getReference()
base_unit_quantity = self.getBaseUnitQuantity() base_unit_quantity = self.getBaseUnitQuantity()
...@@ -72,5 +72,7 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject): ...@@ -72,5 +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)
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