Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3691 Vizualizări

Hello All,

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

 

Thanks in advance.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
aug. 25
2759
1
iul. 25
1105
1
aug. 25
1151
0
mai 25
1530
2
apr. 25
3728