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

Compute Method: _compute_show_allocation

View 19.0 View 20.0
Inputs Method Outputs
  • picking_type_id
  • picking_type_id.auto_show_allocation_report
self.show_allocation = False
- if not self.env.user.has_group('stock.group_reception_report'):
-             return
for picking in self:
-             picking.show_allocation = picking._get_show_allocation(picking.picking_type_id)
+             if picking.picking_type_id.auto_show_allocation_report:
+                 picking.show_allocation = picking._get_show_allocation(picking.picking_type_id)
  • show_allocation

Back to entity