تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3388 أدوات العرض

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>
الصورة الرمزية
إهمال
أفضل إجابة

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 (/).

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 15
7033
1
مارس 15
3665
2
مارس 15
9553
0
نوفمبر 21
2181
4
ديسمبر 20
9503