コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2631 ビュー

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
3337
2
8月 22
7676
1
1月 25
9367
1
9月 21
6680
1
3月 21
5441