How to override create/write method and call your function during this methods?
Any kind examples would be appreciated
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How to override create/write method and call your function during this methods?
Any kind examples would be appreciated
Hi,
You can override the create and write method as follows,
Inherit the corresponding model first, then
Thanks
+1, accepted your answer. Thanks for the good answer.
@Yenthe: Its your link in the answer :)
what happend when i do not return res. just use res = super(ResPartner, self).write(values).
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é | |
---|---|---|---|---|
|
1
sept. 21
|
3175 | ||
|
1
déc. 19
|
4175 | ||
|
2
janv. 19
|
6614 | ||
|
1
avr. 15
|
4570 | ||
|
1
mars 23
|
6043 |
Look into: http://learnopenerp.blogspot.com/2017/11/how-to-override-odoo-functions.html