Commit 78f7ebb2 authored by Tristan Cavelier's avatar Tristan Cavelier Committed by Eteri

erp5_accounting: return title as str in getProjectItemList

parent 18c5f27a
...@@ -21,7 +21,7 @@ if context.getPortalType() == 'Accounting Transaction Module': ...@@ -21,7 +21,7 @@ if context.getPortalType() == 'Accounting Transaction Module':
if not project_list: if not project_list:
return [] # returning an empty list, not to add project column on reports return [] # returning an empty list, not to add project column on reports
return [('', ''), (translateString('No Project'), 'None')] + project_list return [('', ''), (str(translateString('No Project')), 'None')] + project_list
# case 2: script is used on custom listfields. # case 2: script is used on custom listfields.
# for now the script has to be customized in such case. # for now the script has to be customized in such case.
......
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