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

Module: Product Abc Classification

Entity: abc.classification.product.level

Compute Method: _compute_company_id

View 18.0
Inputs Method Outputs
  • profile_id
  • profile_id.company_id
  • product_id
  • product_id.company_id
- for rec in self:
-             rec.company_id = (
-                 rec.profile_id.company_id or rec.product_id.company_id or False
-             )
  • company_id

Back to entity