From cd7c5e0fab7c09d7fd08e820ba0c03ad98cd2861 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Thu, 4 Jan 2024 17:03:10 +0100 Subject: [PATCH] [FIX] shopfloor: change lot & inventory --- shopfloor/actions/change_package_lot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shopfloor/actions/change_package_lot.py b/shopfloor/actions/change_package_lot.py index 628a5856e3..1a590af3ef 100644 --- a/shopfloor/actions/change_package_lot.py +++ b/shopfloor/actions/change_package_lot.py @@ -89,7 +89,7 @@ def _change_pack_lot_change_lot( inventory.create_control_stock( move_line.location_id, move_line.product_id, - lot=move_line.lot_id, + lot=lot, name=_("Pick: stock issue on lot: {} found in {}").format( lot.name, move_line.location_id.name ), @@ -110,7 +110,7 @@ def _change_pack_lot_change_lot( previous_reserved_uom_qty, precision_rounding=rounding, ) - < 0 + != 0 ): message["body"] += " " + _("The quantity to do has changed!") return response_ok_func(move_line, message=message)