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