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_price_subtotal_to_invoice

View 20.0
Inputs Method Outputs
  • price_subtotal
  • product_qty
  • qty_to_invoice
+ for line in self:
+             line.price_subtotal_to_invoice = line.price_subtotal / line.product_qty * line.qty_to_invoice
  • price_subtotal_to_invoice

Back to entity