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

Module: Purchase Container

Entity: purchase.container

Compute Method: _compute_incoterm_id

View 18.0
Inputs Method Outputs
  • purchase_order_ids
+ for record in self:
+             record.incoterm_id = record.purchase_order_ids.filtered(
+                 lambda po: po.incoterm_id
+             )[:1].incoterm_id
  • incoterm_id

Back to entity