Hello All,
How we can override framework method in odoo. give example of any method.
Thanks in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
2
août 25
|
2765 | ||
|
1
juil. 25
|
1113 | ||
|
1
août 25
|
1152 | ||
|
0
mai 25
|
1532 | ||
|
2
avr. 25
|
3731 |