This question has been flagged
3 Replies
5597 Views

I am trying to add a module "Advance Printscreen" and recieving below error. Any help?

Traceback (most recent call last):
File "/opt/odoo/odoo/openerp/http.py", line 476, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/openerp/http.py", line 495, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/openerp/http.py", line 311, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/openerp/http.py", line 308, in checked_call
return self.endpoint(*a, **kw)
File "/opt/odoo/odoo/openerp/http.py", line 685, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo/openerp/http.py", line 360, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 945, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 933, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 233, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 387, in old_api
result = new_api(recs, *args, **kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 391, in new_api
result = [method(rec, *args, **kwargs) for rec in self]
File "/opt/odoo/odoo/openerp/addons/base/module/wizard/base_module_update.py", line 15, in update_module
self.updated, self.added = self.env['ir.module.module'].update_list()
File "/opt/odoo/odoo/openerp/api.py", line 231, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 460, in new_api
result = method(self._model, cr, uid, *args, **kwargs)
File "/opt/odoo/odoo/openerp/addons/base/module/module.py", line 653, in update_list
handler.load_addons()
File "/opt/odoo/odoo/openerp/http.py", line 1186, in load_addons
m = __import__('openerp.addons.' + module)
File "/opt/odoo/odoo/openerp/modules/module.py", line 76, in load_module
mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
File "/opt/odoo/odoo/addons/web_printscreen_zb/__init__.py", line 25, in
import controllers
File "/opt/odoo/odoo/addons/web_printscreen_zb/controllers.py", line 28, in
import web.http as openerpweb
ImportError: No module named web.http - See more at: http://www.zbeanztech.com/blog/advanced-printscreen-openerp-7#sthash.oSA4xzkd.dpuf

Avatar
Discard
Best Answer

Check out: https://github.com/leio/openerp-7-web-addons

This is a fork of the module that you mentioned. There has been some work on this to make it compatible with v8.  In my testing, the above module mostly works.

Avatar
Discard

John, thanks for the contribution, I have voted for you. However, excel work but not pdf do you have the same issue?

@jc, I created a fork that fixed one issue with pdfs here: https://github.com/michaeljohn32/openerp-7-web-addons Try that one and see if it works.

Best Answer

You can't install an openerp 7.0 module. You have to ask for the 8.0 version or you have to adapt it yourself. In this case you have to check where is that http import. Maybe on openerp.addons.web.http

There are so many things that you have to check. You can't install that module directly

Avatar
Discard

I think that is not always true. I guess the first step would be to try it and it might work. I have a very simple custom Module that adds some fields to the Employees form view and that just works in 8.0

Best Answer

Is it better then to stay with version 7?

Avatar
Discard

I personally think there are some huge advantages to moving to v.8 including better mrp, better orm, and the like. However, a migration should definitely be planned and fully tested!

Many thanks,

 I listen and installed ver 8


On 2014-12-20 11:38 PM, John wrote:
<blockquote cite="mid:1419111527.087579011917114.962206442817015-openerp-71118-forum.post@accounts.odoo.com" type="cite">

I personally think there are some huge advantages to moving to v.8 including better mrp, better orm, and the like. However, a migration should definitely be planned and fully tested!

--
John
Sent by Odoo S.A. using Odoo about Forum Post False

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5577 / Virus Database: 4253/8773 - Release Date: 12/20/14


Thanks John, I listen and ver 8 is working. I looks good