python - Odoo 8.0 product_product inherit extend class -
i'm getting first step odoo. i'm trying extend product model class this.
from openerp.osv import osv,fields fields class product_product(osv.osv): _name = 'product.product' _inherit = 'product.product' _columns = { 'products_ids':fields.one2many('product_application.version', 'version_id', string="versions") }
and getting following error
file "/home/nano/archivos/pycharmprojects/odoo/odoo/openerp/models.py", line 596, in _build_model original_module = pool[name]._original_module if name in parents else cls._module file "/home/nano/archivos/pycharmprojects/odoo/odoo/openerp/modules/registry.py", line 102, in __getitem__ return self.models[model_name] keyerror: 'product.product'
can point me complete odoo v8 documentation, official poor
you getting 'keyerror'
so please check whether gave correct depends in openerp.py ie, have give 'product' in depends
give this:- 'depends': ['base', 'product'],
hope helps...
Comments
Post a Comment