Skip to Content
Menu
This question has been flagged
1 Reply
2178 Views

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

Avatar
Discard
Related Posts Replies Views Activity
0
Sep 22
961
1
Jul 22
1062
1
Feb 23
954
0
Feb 23
157
3
Aug 22
7508