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

ERP5Configurator: save path of items needed for later configuration

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