diff --git a/product/ERP5/Document/Rule.py b/product/ERP5/Document/Rule.py index 6627c6222a51e616d67d0d3876c33063cb999250..90eb0b5fcff81f08f2de1517b6ac76425321ae34 100755 --- a/product/ERP5/Document/Rule.py +++ b/product/ERP5/Document/Rule.py @@ -147,10 +147,7 @@ An ERP5 Rule...""" # Name the rule according to its instance id id = self.getId() if getattr(aq_base(context), id, None) is None: - portal_types.constructContent('Applied Rule', - context, - id, - specialise_value = self) + context.newContent(id=id, portal_type='Applied Rule', specialise_value=self) return context.get(id) # Simulation workflow