Commit 8b4e6106 authored by Jérome Perrin's avatar Jérome Perrin

validate the created business process

parent e3e31c6f
...@@ -30,6 +30,7 @@ import zope.interface ...@@ -30,6 +30,7 @@ import zope.interface
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.Message import translateString
from Products.ERP5Configurator.mixin.configurator_item import ConfiguratorItemMixin from Products.ERP5Configurator.mixin.configurator_item import ConfiguratorItemMixin
class BusinessProcessConfiguratorItem(ConfiguratorItemMixin, XMLObject): class BusinessProcessConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...@@ -106,6 +107,7 @@ class BusinessProcessConfiguratorItem(ConfiguratorItemMixin, XMLObject): ...@@ -106,6 +107,7 @@ class BusinessProcessConfiguratorItem(ConfiguratorItemMixin, XMLObject):
delivery_builder = delivery_builder, delivery_builder = delivery_builder,
**link_dict) **link_dict)
business_process.validate(comment=translateString('Validated by configurator'))
self.install(business_process, business_configuration) self.install(business_process, business_configuration)
def _getBusinessProcessDict(self): def _getBusinessProcessDict(self):
......
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