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

Module: Purchase

Entity: purchase.order.line

Compute Method: _compute_qty_invoiced_at_date

View 20.0
Inputs Method Outputs
  • qty_invoiced
+ if not self._date_in_the_past():
+             for line in self:
+                 line.qty_invoiced_at_date = line.qty_invoiced
+             return
+ invoiced_quantities = self._prepare_qty_invoiced()
+ for line in self:
+             line.qty_invoiced_at_date = invoiced_quantities[line]
  • qty_invoiced_at_date

Back to entity