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.session
Compute Method: _compute_picking_count
| Inputs | Method | Outputs |
|---|---|---|
|
|
+ for session in self: + session.picking_count = self.env['stock.picking'].search_count([('pos_session_id', 'in', session.ids)]) + session.failed_pickings = bool(self.env['stock.picking'].search_count([('pos_session_id', 'in', session.ids), ('state', '!=', 'done')], limit=1)) |
|
