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

Module: Accounting - MRP

Entity: mrp.bom

Compute Method: _compute_analytic_account_ids

View 17.0
Inputs Method Outputs
  • analytic_distribution
- for record in self:
-             record.analytic_account_ids = bool(record.analytic_distribution) and self.env['account.analytic.account'].browse(
-                 list({int(account_id) for ids in record.analytic_distribution for account_id in ids.split(",")})
-             ).exists()
  • analytic_account_ids

Back to entity