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.

3

How access to inherited method?

By
Vasiliy Birukov
on 12/1/13, 6:49 AM 875 views

When we _inherits object, then we inherit fields and methods.

We have access from view to inherited fields. But don't have access from view to inherited methods like onchange_xxx.

How access from view to such methods?

0
Vince Vinet
On 12/12/14, 2:49 PM

You can access other methods as you would from any other class:

self.pool["other.object"].onchange_xxx(cr, uid, fielda, fieldb)

Your Answer

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

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

Question tools

0 follower(s)

Stats

Asked: 12/1/13, 6:49 AM
Seen: 875 times
Last updated: 3/27/15, 5:26 PM