Hi masters.
I have a many2many field with attachments widget but I get an access error when I try to acces the form with a normal user, this is the field:
'my_field = fields.Many2many('ir.attachment', string="Attachments")'
I tried to set it public with this:
'@api.model
def create(self, vals):
my_field = {'public': True}
vals.update(my_field)
return super().create(vals)'
But I get an error with the "public" value, I am using Odoo v15