[IMP] stock_location_lockdown: improve error message

This commit is contained in:
Alexis de Lattre
2020-12-04 19:52:07 +01:00
committed by Urvisha-OSI
parent 9db52e9b23
commit 2de75c4f84

View File

@@ -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