As the title says
I have many2many field
user_ids = fields.Many2many(
'res.users',
string='Users',
store=True,
readonly=False,
compute="_compute_user_ids"
)
And compute method
@api.depends('user_ids')
def _compute_user_ids(self):
for rec in self:
user_list = []
for user in rec.user_ids:
user_list.append(user.id)
rec.message_subscribe(partner_ids=user_list)
As you can see, I put the debug in line 2150. But when I change , it's not stuck in the debug
If I use onchange, the debug is triggered. But it will errror because message_subscribe cannot use NewID
My goal is to make user_ids field is subscribed to this model.