Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3392 Vistas

i have odoo v8 windows 7 setup

I installed one of odoo 8 modules:

account_financial_report_webkit

but when I am trying to print in pdf  report I get this error:

coercing to Unicode: need string or buffer, bool found

<type 'exceptions.TypeError'>,coercing to Unicode: need string or buffer, bool found,<traceback object at 0x079BAE90>
Avatar
Descartar
Mejor respuesta

The separator used in the report_file field in the report action is hard-coded and the create_single_pdf method located in webkit_parser_header_fix will try to split the report file path using the system path separator which will lead to a type error when using a windows platform.

You can fix it by replacing the system path separator (os.path.sep) with the hard-coded separator (/).

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
mar 15
7040
1
mar 15
3675
2
mar 15
9583
0
nov 21
2187
4
dic 20
9514