diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index b0032318316240eae4995378f03dd9487517367e..41e6f57d2b838e980ced4a36e82e32df26062f48 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -791,7 +791,13 @@ class ListBoxRenderer: def getListActionUrl(self): """Return the URL of the list action. """ - list_action_part_list = [self.getContext().absolute_url(), '/', self.field.get_value('list_action')] + list_action = self.field.get_value('list_action') + if '/' in list_action: + # This is a 'real' URL + return list_action + else: + # This is only a method name. Let us build the URL + list_action_part_list = [self.getContext().absolute_url(), '/', list_action] if '?' in list_action_part_list[-1]: list_action_part_list.append('&reset=1') else: