From 635cf7d2d23b712bdc08b7b4af0e875c204c629d Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Mon, 11 Feb 2008 12:09:29 +0000 Subject: [PATCH] Fixed url generation, following http://www.erp5.org/GuidelinesForUrlGeneration git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19228 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/PlanningBox.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/product/ERP5Form/PlanningBox.py b/product/ERP5Form/PlanningBox.py index 3353eb4e5d..8445c94a7c 100644 --- a/product/ERP5Form/PlanningBox.py +++ b/product/ERP5Form/PlanningBox.py @@ -1867,6 +1867,9 @@ class BasicGroup: #else: # url = object.getUrl() url = object.getUrl() + if url is not None: + # View is considered the default action from one object + url += "/view" # XXX should define height of block here #height = None @@ -1958,6 +1961,9 @@ class BasicGroup: # get object url, not group url url = self.object.getObject().getUrl() + if url is not None: + # View is considered the default action from one object + url += "/view" # creating new activity instance activity=BasicActivity(title=info['info_center'], name=name, -- 2.30.9