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

How to add 7.0 Module in 8

By
Faheem Khan
on 9/17/14, 2:48 PM 2,427 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

2
John
On 12/19/14, 5:19 PM

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.

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

JC
on 1/3/15, 8:04 PM

@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.

John
on 1/6/15, 11:02 AM
1

Grover Menacho

--Grover Menacho--
2523
| 5 7 8
La Paz, Bolivia
--Grover Menacho--

Systems Engineer + MBA

Grover Menacho
On 9/17/14, 4:17 PM

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

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

gunnar
on 12/20/14, 2:01 AM
0
Erastus
On 12/20/14, 1:44 AM

Is it better then to stay with version 7?

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
on 12/20/14, 4:38 PM
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


Erastus
on 12/21/14, 8:37 AM

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

Erastus
on 12/21/14, 8:39 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 9/17/14, 2:48 PM
Seen: 2427 times
Last updated: 3/16/15, 8:10 AM