Commit 67a380d9 authored by Jérome Perrin's avatar Jérome Perrin

make sure not to pass None to unicode()


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5439 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4f218ea6
...@@ -68,9 +68,7 @@ ...@@ -68,9 +68,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>""" Create a reversal transaction from current tansaction. """\n <value> <string>""" Create a reversal transaction from current tansaction. """\n
\n \n
N_ = context.Base_TranslateString\n N_ = context.Base_translateString\n
\n
\n
\n \n
accounting_module = context.getPortalObject().accounting_module\n accounting_module = context.getPortalObject().accounting_module\n
reversal = accounting_module.newContent (\n reversal = accounting_module.newContent (\n
...@@ -81,9 +79,9 @@ reversal = accounting_module.newContent (\n ...@@ -81,9 +79,9 @@ reversal = accounting_module.newContent (\n
stop_date = context.getStopDate(),\n stop_date = context.getStopDate(),\n
start_date = context.getStartDate(),\n start_date = context.getStartDate(),\n
title = N_("Reversal Transaction for ${title}",\n title = N_("Reversal Transaction for ${title}",\n
mapping={\'title\' : unicode(context.getTitle(), \'utf8\')}),\n mapping={\'title\' : unicode(context.getTitleOrId(), \'utf8\')}),\n
description = N_("Reversal Transaction for ${title} (${source_reference})",\n description = N_("Reversal Transaction for ${title} (${source_reference})",\n
mapping={\'title\' : unicode(context.getTitle(), \'utf8\'), \n mapping={\'title\' : unicode(context.getTitleOrId(), \'utf8\'), \n
\'source_reference\' : context.getSourceReference()}),\n \'source_reference\' : context.getSourceReference()}),\n
resource = context.getResource(), \n resource = context.getResource(), \n
reference = context.getReference(),\n reference = context.getReference(),\n
......
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