From 79821458facfdddc0087a5e85aadceb585dd8b04 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Mon, 13 Nov 2017 14:58:45 +0100 Subject: [PATCH] [REF] stock: wording on view location constraint --- addons/stock/models/stock_quant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_quant.py b/addons/stock/models/stock_quant.py index 4a8170d9f4e..2b2a226aa5d 100644 --- a/addons/stock/models/stock_quant.py +++ b/addons/stock/models/stock_quant.py @@ -84,7 +84,7 @@ class StockQuant(models.Model): def check_location_id(self): for quant in self: if quant.location_id.usage == 'view': - raise ValidationError(_('A product cannot be stored in a "view" location.')) + raise ValidationError(_('You cannot take products from or deliver products to a location of type "view".')) @api.one def _compute_name(self):