[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.
This commit is contained in:
Arnold Moyaux
2018-08-09 12:05:01 +02:00
parent d81e1b7341
commit c3adeb8420
+1 -1
View File
@@ -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([