mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] sudo
This commit is contained in:
@@ -210,7 +210,7 @@ class ReportAsync(models.Model):
|
|||||||
# save attachment to records
|
# save attachment to records
|
||||||
if save_attachment_to_records:
|
if save_attachment_to_records:
|
||||||
model = report.model
|
model = report.model
|
||||||
records = self.env[model].browse(docids)
|
records = self.env[model].sudo().browse(docids)
|
||||||
for record in records:
|
for record in records:
|
||||||
attachment = (
|
attachment = (
|
||||||
self.env["ir.attachment"]
|
self.env["ir.attachment"]
|
||||||
|
|||||||
Reference in New Issue
Block a user