Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I need to inherit the osv_memory model 'pos.session.opening' but when I try to install my custom module, I get this error:
[...] File "/home/ale/Projects/odoo/openerp/models.py", line 592, in _build_model
original_module = pool[name]._original_module if name in parents else cls._module
File "/home/ale/Projects/odoo/openerp/modules/registry.py", line 101, in __getitem__
return self.models[model_name] KeyError: 'pos.session.opening'
This is my code:
from openerp.osv import osv
_inherit = 'pos.session.opening'
_name = 'pos.session.opening' [...]
If I replace the 'pos.session.opening' string in both variables with 'res.config' (which is also osv_memory) I get no error at all..
I'm I doing something wrong?
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/27/15, 5:46 PM|
|Seen: 1162 times|
|Last updated: 4/28/15, 8:11 AM|