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

Module: Purchase Agreements

Entity: purchase.requisition.line

Compute Method: _compute_price_subtotal

View 20.0
Inputs Method Outputs
  • display_type
  • product_qty
  • price_unit
+ for line in self:
+             line.price_subtotal = 0.0 if line.display_type else line.product_qty * line.price_unit
  • price_subtotal

Back to entity