Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
7 Risposte
6573 Visualizzazioni

Hello,

I am getting the following error when I try to print a report

NotImplementedError: Unknown report type: webkit

except_orm: (u'Unknown report type: webkit', (<type 'exceptions.NotImplementedError'>, NotImplementedError(u'Unknown report type: webkit',), <traceback object at 0x7f58480400e0>))

I was able to print reports before, and the webkit modules are there. 

I have no idea where to start looking to find a solution so any tip will be appreciated.

Thanks!

Avatar
Abbandona

Possible causes: report_webkit is not installed or there is another reporting engine module that does not play nice with report_webkit. If you can print *this* (emphasis intended) report before, then you might want to check what have changed in the environment (especially module installed or uninstalled) from then to now.

Autore

Hello Ivan, do you know if there is another module which uses wbekit reports so I can test if it is my code or something else? I even tried installing previous version of my module where it was working and not it doesn't. It looks like it might be something with the system, but I can't find anything. Thanks again

There is a report_webkit_sample module in the past addons-extra that was developed by the same partner: https://code.launchpad.net/~openerp-community/openerp-extra/7.0-report_webkit_sample. The reports from this module should work out of the box.

Autore

Thanks, so far I couldn't install it on v8, it is complaining module wizard is not there,wonder why that is. I will check again in the morning as it is almost 2am here and its been a long day. Thanks a lot for all your help.

For odoo 8 I found this note on addons\report_webkit\webkit_report.py # We use a jinja2 sandboxed environment to render mako templates. # Note that the rendering does not cover all the mako syntax, in particular # arbitrary Python statements are not accepted, and not all expressions are # allowed: only "public" attributes (not starting with '_') of objects may # be accessed. # This is done on purpose: it prevents incidental or malicious execution of # Python code that may break the security of the server. so check if your code follows the above rules,

Autore

Thanks a lot, I will try that! this is getting really frustrating :(

Risposta migliore

See also this discussion:


https://github.com/odoo/odoo/issues/2334

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 16
11012
0
mar 15
3333
1
mar 15
3415
2
mar 15
8322
0
mar 15
3312