Hi guys, I want to modify some logic on the website.track model and I have some doubts.
Does anyone know how to override properly the _add_tracking method?
I am searching on internet but I dont get answers.
Any help is apreciated :)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi guys, I want to modify some logic on the website.track model and I have some doubts.
Does anyone know how to override properly the _add_tracking method?
I am searching on internet but I dont get answers.
Any help is apreciated :)
Hello Andrés Carles,
I hope you are doing well.
Find Example in comment.
I hope this will help you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
---- Py Side Code ----
- def _add_tracking(self, domain, website_track_values):
res = super((Your Class Name), self)._add_tracking()
<<<<Enter Your Code Here>>>>
return res
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ść | |
---|---|---|---|---|
can't override a function
Rozwiązane
|
|
1
cze 16
|
4793 | |
|
0
maj 16
|
3405 | ||
override a method inheritance
Rozwiązane
|
|
2
gru 15
|
3482 | |
|
3
gru 24
|
6521 | ||
|
1
sie 21
|
6641 |