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)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 8/2/14, 3:59 PM|
|Seen: 1690 times|
|Last updated: 8/29/16, 11:15 AM|