Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2727 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
3485
2
thg 8 22
7884
1
thg 1 25
9556
1
thg 9 21
6859
1
thg 3 21
5608