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

Module: Inventory

Entity: stock.picking.batch

Compute Method: _compute_show_allocation

View 20.0
Inputs Method Outputs
  • picking_type_id
  • picking_type_id.auto_show_allocation_report
  • picking_ids
+ self.show_allocation = False
+ for batch in self:
+             if batch.picking_type_id.auto_show_allocation_report:
+                 batch.show_allocation = batch.picking_ids._get_show_allocation(batch.picking_type_id)
  • show_allocation

Back to entity