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 inherit a class with _inherit in a models.Model construced class and define some extra fields and methods.
Now, I want to access a parent class field in a domain statment on one of those fields as well as in an @api.depends decorator.
However, i cannot figure out how to get access to those fields as thei are not available from within the class.
Note: within the method which is decorated with @api.depends, they are accessible normally, but on the identation level of the class itself theay are not... Please help, I can't figure it out even trying to decifer the core python files (models.py api.py fields.py)
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: 8/2/14, 3:59 PM|
|Seen: 3282 times|
|Last updated: 8/29/16, 11:15 AM|