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

Module: Product Class

Entity: product.attribute

Compute Method: _compute_classes_count

View 19.0
Inputs Method Outputs
  • class_attribute_line_ids
  • class_attribute_line_ids.class_id
+ for attribute in self:
+             attribute.classes_count = len(attribute.class_attribute_line_ids.class_id)
  • classes_count

Back to entity