跳至內容
選單
此問題已被標幟
1 回覆
2595 瀏覽次數

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


頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
11月 22
3276
2
8月 22
7608
1
1月 25
9307
1
9月 21
6621
1
3月 21
5383