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_query_company_ids

Inputs Method Outputs
for rec in self:
            if rec.multi_company:
                if not rec.company_ids:
                    rec.query_company_ids = self.env.companies
                else:
                    rec.query_company_ids = rec.company_ids & self.env.companies
            else:
                rec.query_company_ids = rec.company_id or self.env.company

Back to entity