Odoo Help


petstore module for openerp v7

Drees Far
on 8/18/15, 8:02 AM 750 views

Hello friends!!

I want to create a new web module so i have tried to install petstore module on openERP V7.

But, i have got this error:

2015-08-18 11:56:21,353 10797 ERROR test_me openerp.netsvc: Did not expect element template there, line 4

Traceback (most recent call last):

File "/opt/openerp/v7/server/openerp/netsvc.py", line 296, in dispatch_rpc

result = ExportService.getService(service_name).dispatch(method, params)

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 626, in dispatch

res = fn(db, uid, *params)

File "/opt/openerp/v7/server/openerp/osv/osv.py", line 190, in execute_kw

return self.execute(db, uid, obj, method, *args, **kw or {})

File "/opt/openerp/v7/server/openerp/osv/osv.py", line 132, in wrapper

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

File "/opt/openerp/v7/server/openerp/osv/osv.py", line 199, in execute

res = self.execute_cr(cr, uid, obj, method, *args, **kw)

File "/opt/openerp/v7/server/openerp/osv/osv.py", line 187, in execute_cr

return getattr(object, method)(cr, uid, *args, **kw)

File "/opt/openerp/v7/addons/base/module/module.py", line 426, in button_immediate_install

return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)

File "/opt/openerp/v7/addons/base/module/module.py", line 473, in _button_immediate_function

_, pool = pooler.restart_pool(cr.dbname, update_module=True)

File "/opt/openerp/v7/server/openerp/pooler.py", line 39, in restart_pool

registry = RegistryManager.new(db_name, force_demo, status, update_module)

File "/opt/openerp/v7/server/openerp/modules/registry.py", line 233, in new

openerp.modules.load_modules(registry.db, force_demo, status, update_module)

File "/opt/openerp/v7/server/openerp/modules/loading.py", line 354, in load_modules

loaded_modules, update_module)

File "/opt/openerp/v7/server/openerp/modules/loading.py", line 256, in load_marked_modules

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

File "/opt/openerp/v7/server/openerp/modules/loading.py", line 188, in load_module_graph

load_data(module_name, idref, mode)

File "/opt/openerp/v7/server/openerp/modules/loading.py", line 76, in <lambda>

load_data = lambda *args: _load_data(cr, *args, kind='data')

File "/opt/openerp/v7/server/openerp/modules/loading.py", line 124, in _load_data

tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)

File "/opt/openerp/v7/server/openerp/tools/convert.py", line 950, in convert_xml_import


File "lxml.etree.pyx", line 3313, in lxml.etree._Validator.assert_ (src/lxml/lxml.etree.c:160062)

AssertionError: Did not expect element template there, line 4

Who can help please.


Axel Mendoza
On 8/18/15, 12:18 PM

You see an error because that module seems to be code for Odoo 8 and not for OpenERP 7, you need to downgrade some of the elements that have been changed in Odoo 8 like templates views... and because of that is a tutorial module for webclient with a lot of code specific to Odoo 8 better you don't touch it 

Marvin Taboada
On 8/18/15, 8:47 PM

Axel is right, GitHub hosts the v8 version of this module.

If you have no constraints regarding the OpenERP/Odoo version, I would suggest you use Odoo v8 directly.

If you really need the v7 version of this module please get it from here: http://bazaar.launchpad.net/~niv-openerp/+junk/oepetstore/files/head:/oepetstore/

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 8/18/15, 8:02 AM
Seen: 750 times
Last updated: 8/19/15, 1:59 AM