From c3adeb842052cc7d4a40a7ad15e7851758de0c44 Mon Sep 17 00:00:00 2001 From: Arnold Moyaux Date: Thu, 9 Aug 2018 09:51:53 +0200 Subject: [PATCH] [FIX] stock: remove translation on location name The complete name on stock location is computed base on the location name. However the location name can be translate and then the complete name is often half translated. This commit remove the translation on location name. --- addons/stock/models/stock_location.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_location.py b/addons/stock/models/stock_location.py index 5caa723ecc9..85d03bf01ca 100644 --- a/addons/stock/models/stock_location.py +++ b/addons/stock/models/stock_location.py @@ -24,7 +24,7 @@ class Location(models.Model): res['barcode'] = res['complete_name'] return res - name = fields.Char('Location Name', required=True, translate=True) + name = fields.Char('Location Name', required=True) complete_name = fields.Char("Full Location Name", compute='_compute_complete_name', store=True) active = fields.Boolean('Active', default=True, help="By unchecking the active field, you may hide a location without deleting it.") usage = fields.Selection([