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.

1

You may need to add a dependency on the parent class' module [Closed]

By
edgard pimentel rojas
on 5/4/13, 11:56 PM 5,957 views

The Question has been closed

by
Sudhir Arya (SA)
on 06/25/2013 02:57:10

Hi, I want inherit a view but having the next error in the object product.product OpenERP7

2013-05-05 01:50:07,418 7629 INFO conta openerp.modules.loading: module base: loading objects 2013-05-05 01:50:07,475 7629 INFO conta openerp.modules.loading: module web: loading objects 2013-05-05 01:50:07,477 7629 INFO conta openerp.modules.loading: module web_tests: loading objects 2013-05-05 01:50:07,479 7629 INFO conta openerp.modules.loading: module board: loading objects 2013-05-05 01:50:07,482 7629 INFO conta openerp.modules.loading: module decimal_precision: loading objects 2013-05-05 01:50:07,484 7629 INFO conta openerp.modules.loading: module demo: loading objects 2013-05-05 01:50:07,489 7629 ERROR conta openerp.netsvc: The model "product.product" specifies an unexisting parent class "product.product" You may need to add a dependency on the parent class' module. Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 361, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 593, in dispatch security.check(db,uid,passwd) File "/usr/lib/pymodules/python2.7/openerp/service/security.py", line 40, in check pool = pooler.get_pool(db) File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 50, in get_pool return get_db_and_pool(db_name, force_demo, status, update_module)[1] File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 33, in get_db_and_pool registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs) File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 156, in get update_module, pooljobs) File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 178, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module) File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 333, in load_modules processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules) File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 248, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules) File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 158, in load_module_graph models = pool.load(cr, package) File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 104, in load res.append(cls.create_instance(self, cr)) File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 880, in create_instance 'You may need to add a dependency on the parent class\' module.' % (name, parent_name)) TypeError: The model "product.product" specifies an unexisting parent class "product.product" You may need to add a dependency on the parent class' module. 2013-05-05 01:50:07,496 7629 INFO conta werkzeug: 192.168.1.65 - - [05/May/2013 01:50:07] "POST /web/dataset/call_kw/ir.module.module:write HTTP/1.1" 200 -

<openerp> <data> <record model="ir.ui.view" id="views_product_forms"> <field name="name">products_viewss</field> <field name="model">product.product</field> <field name="inherit_id" ref="product.product_normal_form_view"/> <field name="arch" type="xml"> <field name="name" position="after"> <field name="life_time"/> </field> </field> </record> </data> </openerp>

2

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 5/5/13, 2:30 AM

I guess it is because you did not add dependency of product module in your custom module. Add product under depends in __openerp__.py of your module. Restart your server.

thanks, already running

edgard pimentel rojas
on 5/5/13, 6:57 PM

Thanks +Sudhir Arya; your answer solved my problem!

Moore Works, Dale E. Moore
on 1/7/14, 11:13 AM

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 5/4/13, 11:56 PM
Seen: 5957 times
Last updated: 4/10/15, 4:11 PM