diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py index 7cad999c365baae070705237be55d3794e5f8bd3..3fadd10311f36fee50821642b0baab5c1780949e 100644 --- a/product/ERP5Form/SelectionTool.py +++ b/product/ERP5Form/SelectionTool.py @@ -690,6 +690,13 @@ class SelectionTool( UniqueObject, SimpleItem ): if REQUEST is not None: return self._redirectToOriginalForm(REQUEST=REQUEST, form_id=form_id, query_string=query_string) + + security.declareProtected(ERP5Permissions.View, 'setDomainRootFromParam') + def setDomainRootFromParam(self, REQUEST, selection_name, domain_root): + if REQUEST is None: + return + selection = self.getSelectionFor(selection_name, REQUEST) + selection.edit(domain_path=domain_root, domain_list=()) security.declareProtected(ERP5Permissions.View, 'unfoldDomain') def unfoldDomain(self, REQUEST, form_id=None, query_string=None):