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

Module: Purchase landed costs - Alternative option

Entity: purchase.cost.distribution.line

Compute Method: _compute_total_amount

View 19.0
Inputs Method Outputs
  • product_price_unit
  • product_qty
+ for dist_line in self:
+             dist_line.total_amount = (
+                 dist_line.product_price_unit * dist_line.product_qty
+             )
  • total_amount

Back to entity