Commit 61e0528a authored by Jérome Perrin's avatar Jérome Perrin

use ERP5Site_getAbsoluteUrl to add the URL, because in activities we do not have absolute_url.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10650 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5e681a10
...@@ -114,7 +114,8 @@ Please wisit ERP5: %(url)s\n ...@@ -114,7 +114,8 @@ Please wisit ERP5: %(url)s\n
""" % {\n """ % {\n
\'assignor\': destination_decision_person.getTitle(),\n \'assignor\': destination_decision_person.getTitle(),\n
\'title\' : packing_list.getTitle(),\n \'title\' : packing_list.getTitle(),\n
\'url\' : packing_list.absolute_url(),\n \'url\' : \'%s/%s\' % (packing_list.ERP5Site_getAbsoluteUrl(),\n
packing_list.getRelativeUrl()),\n
\'comment\' : packing_list.getComment(),\n \'comment\' : packing_list.getComment(),\n
\'start_date\': packing_list.getStartDate().Date(),\n \'start_date\': packing_list.getStartDate().Date(),\n
\'stop_date\': packing_list.getStopDate().Date(),\n \'stop_date\': packing_list.getStopDate().Date(),\n
......
...@@ -94,7 +94,8 @@ Please wisit ERP5: %(url)s\n ...@@ -94,7 +94,8 @@ Please wisit ERP5: %(url)s\n
""" % {\n """ % {\n
\'assignor\': destination_decision_person.getTitle(),\n \'assignor\': destination_decision_person.getTitle(),\n
\'title\' : packing_list.getTitle(),\n \'title\' : packing_list.getTitle(),\n
\'url\' : packing_list.absolute_url(),\n \'url\' : \'%s/%s\' % (packing_list.ERP5Site_getAbsoluteUrl(),\n
packing_list.getRelativeUrl()),\n
\'comment\' : packing_list.getComment(),\n \'comment\' : packing_list.getComment(),\n
\'start_date\': packing_list.getStartDate().Date(),\n \'start_date\': packing_list.getStartDate().Date(),\n
\'stop_date\': packing_list.getStopDate().Date(),\n \'stop_date\': packing_list.getStopDate().Date(),\n
......
99 100
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment