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

Module: PoS - Stock

Entity: pos.config

Compute Method: _compute_warehouse_id

View 20.0
Inputs Method Outputs
  • picking_type_id
  • picking_type_id.warehouse_id
+ for config in self:
+             if config.picking_type_id.warehouse_id:
+                 config.warehouse_id = config.picking_type_id.warehouse_id
+             else:
+                 config.warehouse_id = config._default_warehouse_id()
  • warehouse_id

Back to entity