[Erp5-report] r19228 - /erp5/trunk/products/ERP5Form/PlanningBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 11 13:09:29 CET 2008
Author: rafael
Date: Mon Feb 11 13:09:29 2008
New Revision: 19228
URL: http://svn.erp5.org?rev=19228&view=rev
Log:
Fixed url generation, following http://www.erp5.org/GuidelinesForUrlGeneration
Modified:
erp5/trunk/products/ERP5Form/PlanningBox.py
Modified: erp5/trunk/products/ERP5Form/PlanningBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/PlanningBox.py?rev=19228&r1=19227&r2=19228&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/PlanningBox.py (original)
+++ erp5/trunk/products/ERP5Form/PlanningBox.py Mon Feb 11 13:09:29 2008
@@ -1867,6 +1867,9 @@
#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 @@
# 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,
More information about the Erp5-report
mailing list