From 2de75c4f84e9b9990be2af4393c040b4832aa3b1 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 4 Dec 2020 19:52:07 +0100 Subject: [PATCH] [IMP] stock_location_lockdown: improve error message --- stock_location_lockdown/models/stock_quant.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stock_location_lockdown/models/stock_quant.py b/stock_location_lockdown/models/stock_quant.py index 05ad42ce9..dcc490c22 100644 --- a/stock_location_lockdown/models/stock_quant.py +++ b/stock_location_lockdown/models/stock_quant.py @@ -17,6 +17,5 @@ class StockQuant(models.Model): raise ValidationError( _('The location %s is blocked and can ' 'not be used for moving the product %s') - % (record.location_id.name, record.product_id.name) + % (record.location_id.display_name, record.product_id.display_name) ) - return True