Skip to content

Commit

Permalink
[FIX] lighting: permission error uploading massively product attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
eantones committed Jan 22, 2025
1 parent 6933d1c commit 21608a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighting/wizard/lighting_product_addattachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def add_attachment(self):
if not ir_attach:
continue
ir_attach = ir_attach[0]
if ir_attach.checksum == addattach.checksum:
if ir_attach.sudo().checksum == addattach.sudo().checksum:
attach_grouped.setdefault("bydatas", []).append(attach)
elif attach.datas_fname.lower() == self.datas_fname.lower():
attach_grouped.setdefault("byfname", []).append(attach)
Expand Down

0 comments on commit 21608a6

Please sign in to comment.