Commit c4889360 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Xiaowu Zhang

ERP5Configurator: save path of items needed for later configuration

parent 8bd6b79a
......@@ -69,6 +69,8 @@ class BusinessProcessConfiguratorItem(ConfiguratorItemMixin, XMLObject):
business_configuration = self.getBusinessConfigurationValue()
business_configuration.setGlobalConfigurationAttr(\
business_process_id=business_process.getId())
business_configuration.setGlobalConfigurationAttr(\
business_process_path='business_process_module/%s' %business_process.getId())
business_process_dict = self._getBusinessProcessDict()
......
......@@ -80,6 +80,8 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject):
if currency:
business_configuration = self.getBusinessConfigurationValue()
business_configuration.setGlobalConfigurationAttr(currency_id=currency.getId())
business_configuration.setGlobalConfigurationAttr(\
currency_path='currency_module/%s' %currency.getId())
## add to customer template
self.install(currency, business_configuration)
......
......@@ -79,6 +79,8 @@ class OrganisationConfiguratorItem(ConfiguratorItemMixin, XMLObject):
business_configuration = self.getBusinessConfigurationValue()
# store globally organization_id
business_configuration.setGlobalConfigurationAttr(organisation_id=organisation.getId())
business_configuration.setGlobalConfigurationAttr(\
organisation_path='organisation_module/%s' %organisation.getId())
if self.portal_workflow.isTransitionPossible(organisation, 'validate'):
organisation.validate(comment=translateString("Validated by Configurator"))
......
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