Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Discuss
Entity: mail.template
Compute Method: _compute_has_dynamic_reports
| Inputs | Method | Outputs |
|---|---|---|
|
+ number_of_dynamic_reports_per_model = dict( + self.env['ir.actions.report'].sudo()._read_group( + domain=[('model', 'in', self.mapped('model'))], + groupby=['model'], + aggregates=['id:count'], + having=[('__count', '>', 0)])) + for template in self: + template.has_dynamic_reports = template.model in number_of_dynamic_reports_per_model |
|
