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

Module: Purchase Stock

Entity: stock.warehouse.orderpoint

Compute Method: _compute_product_supplier_id

Inputs Method Outputs
  • product_tmpl_id
  • product_tmpl_id.seller_ids
for orderpoint in self:
            orderpoint.product_supplier_id = orderpoint.product_tmpl_id.seller_ids.sorted('sequence')[:1].partner_id.id

Back to entity