Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2598 Widoki

I want to track one field but it doesn't work. i have tried both track_visibility = 'onchange'

and tracking = True but don't work. what i can do for that? i have searched many many times but i can't find solution


Awatar
Odrzuć
Najlepsza odpowiedź

HI, 

Try to inherit "mail.thread" Model in your model. Try to add  _inherit = ['mail.thread'] line after your model description.   

Just like this:

class YourCustomModel(models.Model):
    _name = 'your.custom.model.name'
     _inherit = ['mail.thread']
    _description = 'Your Custom Model'

Hope it will help you.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 22
3276
2
sie 22
7608
1
sty 25
9308
1
wrz 21
6621
1
mar 21
5387