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).
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
wrz 21
|
3221 | ||
How to Override the Based Method in Odoo?
Rozwiązane
|
|
1
gru 19
|
4219 | |
onchange method doesn't work for new records
Rozwiązane
|
|
2
sty 19
|
6656 | |
|
1
kwi 15
|
4590 | ||
|
1
mar 23
|
6064 |
Look into: http://learnopenerp.blogspot.com/2017/11/how-to-override-odoo-functions.html