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
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
2
elok. 25
|
2752 | ||
|
1
heinäk. 25
|
1097 | ||
|
1
elok. 25
|
1151 | ||
|
0
toukok. 25
|
1525 | ||
|
2
huhtik. 25
|
3717 |