Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Report Async
Entity: report.async
Compute Method: _compute_file
| Inputs | Method | Outputs |
|---|---|---|
|
files = self.env["ir.attachment"].search(
[
("res_model", "=", "report.async"),
("res_id", "in", self.ids),
- ("create_uid", "=", self._uid),
+ ("create_uid", "=", self.env.uid),
],
order="id desc",
)
for rec in self:
rec.file_ids = files.filtered(lambda file, rec=rec: file.res_id == rec.id)
|
|
