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

Module: Warehouse Management: Batch Transfer

Entity: stock.picking.batch

Compute Method: _compute_show_allocation

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

Back to entity