跳至内容
菜单
此问题已终结
1 回复
3678 查看

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

形象
丢弃
相关帖文 回复 查看 活动
2
8月 25
2747
1
7月 25
1096
1
8月 25
1151
0
5月 25
1524
2
4月 25
3714