From bd187c35c247a747cc841d9b721e545e05c82d8f Mon Sep 17 00:00:00 2001 From: clesgow Date: Fri, 27 Oct 2023 13:08:00 +0200 Subject: [PATCH] [FIX] stock: update picking validation error The forms are always in edit mode, so no need to refer to the "edit mode" anymore. Also the 'done quantities' no longer exists from the user pov, there's only a 'quantity' field. closes odoo/odoo#140094 Signed-off-by: William Henrotin (whe) --- addons/stock/i18n/stock.pot | 2 +- addons/stock/models/stock_picking.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/i18n/stock.pot b/addons/stock/i18n/stock.pot index 74180c00916..d33fcda91bd 100644 --- a/addons/stock/i18n/stock.pot +++ b/addons/stock/i18n/stock.pot @@ -10039,7 +10039,7 @@ msgstr "" #, python-format msgid "" "You cannot validate a transfer if no quantities are reserved. To force the " -"transfer, switch in edit mode and encode the done quantities." +"transfer, encode quantities." msgstr "" #. module: stock diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index 5a8047bb8e5..f73f6a1a159 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -1190,7 +1190,7 @@ class Picking(models.Model): """ return _( 'You cannot validate a transfer if no quantities are reserved. ' - 'To force the transfer, switch in edit mode and encode the done quantities.' + 'To force the transfer, encode quantities.' ) def _action_generate_backorder_wizard(self, show_transfers=False):