Odoo Help

2

How to Override framework method in odoo v8.

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

Hello All,

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

 

Thanks in advance.

1

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.

Register

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)

Stats

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