Error when printing payment suggestion list from voucher
Created originally on Bitbucket by Anonymous
The report crashes with this error if the "message" is not set on company settings
except_osv: (u'Rendu webkit !', u'\n\nTraceback (most recent call last):\n File "/home/allouche/sources/openerp/7.0/openobject-addons/report_webkit/webkit_report.py", line 273, in create_single_pdf\n **self.parser_instance.localcontext)\n File "/home/allouche/sources/openerp/env-openerp70/local/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/template.py", line 443, in render\n return runtime.render(self, self.callable, args, data)\n File "/home/allouche/sources/openerp/env-openerp70/local/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 783, in _render\n **kwargs_for_callable(callable, data))\n File "/home/allouche/sources/openerp/env-openerp70/local/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 815, in _render_context\n _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n File "/home/allouche/sources/openerp/env-openerp70/local/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 841, in exec_template\n callable(context, *args, **kwargs)\n File "memory:0x7f0fc47f3790", line 78, in render_body\n
\n File "/home/allouche/sources/openerp/7.0/xcg-addons/account_streamline/report/payment_notice.py", line 46, in get_message\n return company.message_voucher_validate.replace(' ${ message(object) }
iban', iban).replace('
date', str(date))\nAttributeError: 'bool' object has no attribute 'replace'\n')