Skip to Content
Menu
This question has been flagged
2 Replies
8826 Views

I am using the POS module in Odoo v10 on Ubuntu 16 and would like to be able to export a tree view of pos.order or account.payment or any other, for that matter.


I found web_printscreen module at \https://github.com/Manexware/Web-Printscreen but when I install it, I get two new buttons at the top of the tree view that say "PDF or Excel", but neither of them produce any response. I have use "tail -f /var/log/odoo/odoo-server.log to watch for any erros at the time of clicking, but simply get nothing.


I have used web_printscreen_zb from zestybeanz successfully in Odoo V8.0.


Has anyone used this module successfully in Odoo V10?

Avatar
Discard
Best Answer

Hi Daniel Holden, The module of the zesty beanz v9 is installable in the Odoo v10. But the problem is that it wont show the two buttons, if you can check with the code and make necessary changes , it will be fine in v10 too

Avatar
Discard
Author

Niyas, thanks for your quick reply. I would need some help with those code changes. Any idea where I can start?

Author

When I attempt to install web_printscreen_zb for version 9, but get the following error:

Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/odoo/http.py", line 638, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/usr/lib/python2.7/site-packages/odoo/http.py", line 675, in dispatch

result = self._call_function(**self.params)

File "/usr/lib/python2.7/site-packages/odoo/http.py", line 331, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/odoo/service/model.py", line 101, in wrapper

return f(dbname, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/odoo/http.py", line 324, in checked_call

result = self.endpoint(*a, **kw)

File "/usr/lib/python2.7/site-packages/odoo/http.py", line 933, in __call__

return self.method(*args, **kw)

File "/usr/lib/python2.7/site-packages/odoo/http.py", line 504, in response_wrap

response = f(*args, **kw)

File "/usr/lib/python2.7/site-packages/odoo/addons/web/controllers/main.py", line 889, in call_button

action = self._call_kw(model, method, args, {})

File "/usr/lib/python2.7/site-packages/odoo/addons/web/controllers/main.py", line 877, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/usr/lib/python2.7/site-packages/odoo/api.py", line 681, in call_kw

return call_kw_multi(method, model, args, kwargs)

File "/usr/lib/python2.7/site-packages/odoo/api.py", line 672, in call_kw_multi

result = method(recs, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/odoo/addons/base/module/module.py", line 410, in button_immediate_install

return self._button_immediate_function(type(self).button_install)

File "/usr/lib/python2.7/site-packages/odoo/addons/base/module/module.py", line 484, in _button_immediate_function

modules.registry.Registry.new(self._cr.dbname, update_module=True)

File "/usr/lib/python2.7/site-packages/odoo/modules/registry.py", line 82, in new

odoo.modules.load_modules(registry._db, force_demo, status, update_module)

File "/usr/lib/python2.7/site-packages/odoo/modules/loading.py", line 339, in load_modules

loaded_modules, update_module)

File "/usr/lib/python2.7/site-packages/odoo/modules/loading.py", line 237, in load_marked_modules

loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)

File "/usr/lib/python2.7/site-packages/odoo/modules/loading.py", line 122, in load_module_graph

load_openerp_module(package.name)

File "/usr/lib/python2.7/site-packages/odoo/modules/module.py", line 367, in load_openerp_module

__import__('odoo.addons.' + module_name)

File "/usr/lib/python2.7/site-packages/odoo/modules/module.py", line 81, in load_module

execfile(modfile, new_mod.__dict__)

File "/usr/lib/python2.7/site-packages/odoo/addons/web_printscreen_zb/__init__.py", line 25, in <module>

import controllers

File "/usr/lib/python2.7/site-packages/odoo/addons/web_printscreen_zb/controllers.py", line 28, in <module>

import openerp.addons.web.http as openerpweb

File "/usr/lib/python2.7/site-packages/odoo/modules/module.py", line 109, in load_module

mod = importlib.import_module(canonical)

File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module

__import__(name)

ImportError: No module named http

Hi Daniel Holden , I think you are done with web export current view app.

The above error can be resolved by adding a ,

"from odoo import http" in py file

Related Posts Replies Views Activity
0
Mar 15
3508
1
Dec 22
5498
2
Dec 22
2293
0
Apr 16
3809
3
Mar 15
6158