Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

coercing to Unicode: need string or buffer, bool found,when I insall Financial_report_webkit module from camp to camp (Windows) [Closed]

By
Odoo
on 9/15/15, 10:25 AM 1,755 views

The Question has been closed for reason: not in english

by
Odoo
on 09/17/2015 13:09:11


I got this error when I take ,print from

Accounting->Reporting->Accounting Report->General Ledger-----------

coercing to Unicode: need string or buffer, bool found

<type 'exceptions.TypeError'>,coercing to Unicode: need string or buffer,

bool found,<traceback object at 0x07ABC238>



Dep, I am having the same issue. I read your fix but am a bit confused. I do not have the account_financial_report_webkit/report/webkit_parser_header.py However I do have a file called webkit_parser_header_fix.py. This si where i added the code you listed below. What do you mean when you say: from openerp.addons.report_webkit.report_helper import WebKitHelper from openerp.modules.module import get_module_path. I'm really trying to get this to work, any help would be great. Thanks

John Pia Jr
on 4/6/16, 3:57 AM

wl reply later..

Odoo
on 4/6/16, 4:38 AM

which os windows or linux

Odoo
on 4/6/16, 4:49 AM

sent ur modul;e

Odoo
on 4/6/16, 4:49 AM

Here is my Module: I am using Windows https://drive.google.com/file/d/0B702rHqbXA9wRzBVRXozTjJXMTA/view?usp=sharing

John Pia Jr
on 4/7/16, 9:18 AM

please give ur mail id i will resolve the issue

Odoo
on 4/7/16, 11:30 AM

whats ur personal mail id .I will sent the updated module

Odoo
on 4/7/16, 11:32 AM
Format 

On Thu, Apr 7, 2016 at 6:48 PM, John Pia Jr <jpiajr-southmill.com@mail.odoo.com> wrote:

--
John Pia Jr

Sent by Odoo S.A. using Odoo



--
Thanks&Regards
Libu Koshy
Odoo
on 4/7/16, 11:35 AM
I Resolved the issue

On Wed, Apr 6, 2016 at 1:27 PM, John Pia Jr <jpiajr-southmill.com@mail.odoo.com> wrote:

Dep, I am having the same issue. I read your fix but am a bit confused. I do not have the account_financial_report_webkit/report/webkit_parser_header.py However I do have a file called webkit_parser_header_fix.py. This si where i added the code you listed below. What do you mean when you say: from openerp.addons.report_webkit.report_helper import WebKitHelper from openerp.modules.module import get_module_path. I'm really trying to get this to work, any help would be great. Thanks

--
John Pia Jr

Sent by Odoo S.A. using Odoo



--
Thanks&Regards
Libu Koshy
Odoo
on 4/7/16, 11:42 AM

Jpiajr@southmill.com Dep thank you so much for this help. You have really saved my day!!! Thank k you

John Pia Jr
on 4/7/16, 1:09 PM

R u working in company or own company or freelance whts Ur role

On Apr 7, 2016 10:39 PM, "John Pia Jr" <jpiajr-southmill.com@mail.odoo.com> wrote:

Jpiajr@southmill.com Dep thank you so much for this help. You have really saved my day!!! Thank k you

--
John Pia Jr

Sent by Odoo S.A. using Odoo
Odoo
on 4/7/16, 1:17 PM
0

Odoo

--Odoo --
1328
| 5 2 5
kerala, India
--Odoo --

Working as a Odoo Functional and Technical Expert

Odoo
On 9/16/15, 11:43 PM

+++++++++++++++++++++++++++++++++++++++++EDITED++++++++++++++++++++++++++++++++++++++++++


from openerp.addons.report_webkit.report_helper import WebKitHelper

from openerp.modules.module import get_module_path

I find the solution my own way ....

changed the file

account_financial_report_webkit/report/webkit_parser_header.py in last I added below code

mod_path = get_module_path(module)

if not mod_path: return False

resource_path = os.path.join(mod_path, *args)

if os.environ.get('OS')=='Windows_NT':

resource_path = resource_path.replace('/','\\')

mod_path = mod_path.replace(module,'')

if os.path.isdir(mod_path):

# the module is a directory - ignore zip behavior

if os.path.exists(resource_path):

return resource_path

return False

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 9/15/15, 10:25 AM
Seen: 1755 times
Last updated: 4/13/16, 1:57 PM