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_level_id

View 18.0
Inputs Method Outputs
  • manual_level_id
  • computed_level_id
- for rec in self:
-             if rec.manual_level_id:
-                 rec.level_id = rec.manual_level_id
-             else:
-                 rec.level_id = rec.computed_level_id
  • level_id

Back to entity