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_effective_vendor_id

View 20.0
Inputs Method Outputs
  • supplier_id
  • supplier_id.partner_id
+ for orderpoint in self:
+             orderpoint.effective_vendor_id = orderpoint.supplier_id.partner_id or orderpoint._get_default_supplier().get('partner_id')
  • effective_vendor_id

Back to entity