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

Module: Website Sale Slides Multi Qty

Entity: slide.channel.partner

Compute Method: _compute_used_registrations

View 19.0
Inputs Method Outputs
  • sale_order_line_ids
  • child_channel_partner_ids
+ for record in self:
+             record.used_registrations = (
+                 len(record.child_channel_partner_ids)
+                 + int(record._is_individual_course_registration())
+                 if record.sale_order_line_ids
+                 else 1
+             )
  • used_registrations

Back to entity