From e98d75c883a40cfc827ce7371f1917a1bc6be574 Mon Sep 17 00:00:00 2001 From: Florent de Labarre Date: Wed, 31 Mar 2021 17:00:15 +0000 Subject: [PATCH] [FIX] stock : show complete name of location closes odoo/odoo#69005 X-original-commit: d4206d4a4a4cc527351a1c9cea0af0cf53dfd500 Signed-off-by: Arnold Moyaux --- 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 fd6eda2e23c..8dbb04da80c 100644 --- a/addons/stock/models/stock_location.py +++ b/addons/stock/models/stock_location.py @@ -177,7 +177,7 @@ class Location(models.Model): children_quants = self.env['stock.quant'].search(['&', '|', ('quantity', '!=', 0), ('reserved_quantity', '!=', 0), ('location_id', 'in', internal_children_locations.ids)]) if children_quants and values['active'] == False: raise UserError(_('You still have some product in locations %s') % - (', '.join(children_quants.mapped('location_id.name')))) + (', '.join(children_quants.mapped('location_id.display_name')))) else: super(Location, children_location - self).with_context(do_not_check_quant=True).write({ 'active': values['active'],