From 5a47fdc2f8a1200dea1eacc848af41cf9a24a868 Mon Sep 17 00:00:00 2001 From: Maitri Patel Date: Wed, 14 Jun 2023 11:11:11 +0000 Subject: [PATCH] [FIX] stock: prevent traceback when lots is empty in import serial/lots When the user click on the 'import' button without lots in the import serial/lots wizard in stock then this issue is generated. Steps to reproduce: - Install Inventory. - Inventory >> Operations >> Receipts >> create the new Receipt - Add product to the receipt which has tracking 'by lots', Save the Receipts - Click on the button in a tree view which opens the detailed operation wizard, And click on Import Serial/Lots in it - In Import Serial/ Lots wizard click on the import button without passing any value in the lots field - Traceback will be generated Applying these changes will resolve this issue. sentry-4244975188 closes odoo/odoo#125786 X-original-commit: a45aeea3335a96390de0b4b5760683e3081852df Signed-off-by: William Henrotin (whe) --- addons/stock/wizard/stock_import_lot_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_import_lot_views.xml b/addons/stock/wizard/stock_import_lot_views.xml index ad246bf9d81..ba9b38cee63 100644 --- a/addons/stock/wizard/stock_import_lot_views.xml +++ b/addons/stock/wizard/stock_import_lot_views.xml @@ -16,7 +16,7 @@ - +