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

Compute Method: _compute_incoterm_id

View 19.0 View 20.0
Inputs Method Outputs
  • partner_id
  • partner_id.purchase_incoterm_id
+ for po in self:
+             partner_incoterm = po.partner_id.purchase_incoterm_id
+             if partner_incoterm:
+                 po.incoterm_id = partner_incoterm
  • incoterm_id

Back to entity