Skip to content

Commit

Permalink
[FIX] report_aeroo: We use sudo to avoid rights errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomacr committed May 19, 2023
1 parent 14f8ded commit 902f334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report_aeroo/report_parser.py
Expand Up @@ -490,7 +490,7 @@ def barcode(
# Add metadata
ser = basic.Serializer
model_obj = self.env.get('ir.model')
model_name = model_obj.search([('model', '=', self.env.model)])[0].name
model_name = model_obj.sudo().search([('model', '=', self.env.model)])[0].name
ser.add_title(model_name)

user_name = self.env.user.name
Expand Down

0 comments on commit 902f334

Please sign in to comment.