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

Module: Sales

Entity: sale.order.line

Compute Method: _compute_qty_invoiced

View 19.0 View 20.0
Inputs Method Outputs
- """
-         Compute the quantity invoiced. If case of a refund, the quantity invoiced is decreased. Note
-         that this is the case only if the refund is generated from the SO and that is intentional: if
-         a refund made would automatically decrease the invoiced quantity, then there is a risk of reinvoicing
-         it automatically, which may not be wanted at all. That's why the refund has to be created from the SO
+ """Compute the invoiced quantity invoiced.
+ 
+         If case of a refund, the quantity invoiced is decreased. Note that this is the case only if
+         the refund is generated from the SO and that is intentional: if a refund made would
+         automatically decrease the invoiced quantity, then there is a risk of reinvoicing
+         it automatically, which may not be wanted at all. That's why the refund has to be created
+         from the SO.
        """
invoiced_quantities = self._prepare_qty_invoiced()
for line in self:
            line.qty_invoiced = invoiced_quantities[line]
  • qty_invoiced

Back to entity