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).
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 9 21
|
3142 | ||
|
1
thg 12 19
|
4114 | ||
|
2
thg 1 19
|
6570 | ||
|
1
thg 4 15
|
4549 | ||
|
1
thg 3 23
|
6017 |
Look into: http://learnopenerp.blogspot.com/2017/11/how-to-override-odoo-functions.html