This question has been flagged
2 Replies
6079 Views

I'm getting the below message whicle processing any report by webkit

coercing to Unicode: need string or buffer, bool found

(<type 'exceptions.typeerror'="">, TypeError('coercing to Unicode: need string or buffer, bool found',), <traceback object="" at="" 0x08527f08="">)

Avatar
Discard

This issue raised because you had created object using. self.pool.get('object.object') (your model name) which is still not installed in your current DB. check the dependency of your module. I faced this issue in initial stage. so. when you try to create object if that model will not found it will return False. instead of buffer. thats why this error raise. Hope this will help

Best Answer

It's likely that you have some parameter/field set to zero or null which is interpreted as false which leads to this error. Need more info than this error to find out that which parameter/field it is.

Hope this helps.

Avatar
Discard
Author

how to find this, I'm using windows server

Which modules are you using? Have you set webkit_path in Settings -> Customization -> Parameters -> System Parameters?https://www.openerp.com/apps/report_webkit/

Author

That's resolved my problem, many thanks for your contribution

I'm having the same problem under Vista 64 bit. I set the webkit_path at system parameters to E:\ERP\webkit\wkhtmltopdf

I also tried

E:\ERP\webkit\wkhtmltopdf\wkhtmltopdf.exe

I doesnt look like it needes quotation marks, does it? What am i doing wrong?

Best Answer

Dear try this first:

http://www.youtube.com/watch?v=x5q9-XAnDtk

if it did not fix the issue and gaive you a new error try to perform an update of openerp. It appears that your account_financial_report_webkit module is newer than the report_webkit module bundled with openerp. The change in the report_webkit module was introduced in June 2014.

Avatar
Discard