[FIX] stock: show move lines with quantity done
Before this commit, pickings of picking type with `show_reserved` on False don't show pre-fill moves -what is expected- even if those pre-fill moves have quantity done -what is less wanted and can happened, with stock_barcode for example. With this commit, we continue to hide pre-fill moves for this kind of picking, except for pre-fill moves who have a quantity done.
This commit is contained in:
@@ -140,7 +140,7 @@ class StockMove(models.Model):
|
||||
picking_type_id = fields.Many2one('stock.picking.type', 'Operation Type', check_company=True)
|
||||
inventory_id = fields.Many2one('stock.inventory', 'Inventory', check_company=True)
|
||||
move_line_ids = fields.One2many('stock.move.line', 'move_id')
|
||||
move_line_nosuggest_ids = fields.One2many('stock.move.line', 'move_id', domain=[('product_qty', '=', 0.0)])
|
||||
move_line_nosuggest_ids = fields.One2many('stock.move.line', 'move_id', domain=['|', ('product_qty', '=', 0.0), ('qty_done', '!=', 0.0)])
|
||||
origin_returned_move_id = fields.Many2one('stock.move', 'Origin return move', copy=False, help='Move that created the return move', check_company=True)
|
||||
returned_move_ids = fields.One2many('stock.move', 'origin_returned_move_id', 'All returned moves', help='Optional: all returned moves created from this move')
|
||||
reserved_availability = fields.Float(
|
||||
|
||||
Reference in New Issue
Block a user