How to override create/write method and call your function during this methods?
Any kind examples would be appreciated
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).
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
1
Eyl 21
|
4752 | |||
|
1
Ara 19
|
6288 | |||
|
2
Oca 19
|
8702 | |||
|
1
Nis 15
|
6540 | |||
|
1
Mar 23
|
8148 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Look into: http://learnopenerp.blogspot.com/2017/11/how-to-override-odoo-functions.html