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

Module: Event Sale Sessions

Entity: event.session

Compute Method: _compute_unconfirmed_qty

View 18.0
Inputs Method Outputs
  • sale_order_lines_ids
- for session in self:
-             session.unconfirmed_qty = int(
-                 sum(
-                     session.sale_order_lines_ids.filtered(
-                         lambda x: x.order_id.state in ("draft", "sent")
-                     ).mapped("product_uom_qty")
-                 )
-             )
  • unconfirmed_qty

Back to entity