0
votes

I am trying to record a change history with the many2many field using mail.thread but it fails

track_visibility = 'onchange' not working

Help me solve this problem?

1
Could you please share more Info? What have you tried exactly? Some Code would be helpful.CZoellner
I have a field of many2many form to model res.user: share_user = fields.Many2many(comodel_name="res.users", relation="model_share_user_rel", string="Share with account", track_visibility='onchange', default=lambda self: self.env.user ) I want the current user to add or delete item on this filed to record the operation history.nguyen thanh Dinh

1 Answers

1
votes

Add this after the class name.

_inherit = ['mail.thread', 'mail.activity.mixin']

Then try:

track_visibility="onchange"