Odoo Help


How to Override framework method in odoo v8.

Prince Caspion
on 9/9/14, 8:59 AM 1,140 views

Hello All,

How we can override framework method in odoo. give example of any method.


Thanks in advance.


Hi Prince,

Please have a look on the below ex. That is for override write method of the BaseModel.

from openerp.osv import orm

def custom_write(self, cr, uid, ids, vals, context=None):

 ..... Your code ...

    return True

orm.BaseModel.write = custom_write

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/9/14, 8:59 AM
Seen: 1140 times
Last updated: 3/16/15, 8:10 AM