Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: MIS Builder

Entity: mis.report.instance

Compute Method: _compute_widget_search_view_id

Inputs Method Outputs
for rec in self:
            rec.widget_search_view_id = (
                self.env["ir.ui.view"]
                .sudo()
                .search(
                    [
                        ("type", "=", "search"),
                        ("model", "=", rec.report_id.move_lines_source.model),
                    ],
                    limit=1,
                )
            )

Back to entity