summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorFlorent de Labarre <florent.mirieu@gmail.com>2021-03-31 17:00:15 +0000
committerGitHub <noreply@github.com>2021-03-31 17:00:15 +0000
commitd4206d4a4a4cc527351a1c9cea0af0cf53dfd500 (patch)
treed29a4d80b1278a7e07632de36078b388c89f31ff /addons
parent3e5130d90127d9634c48e5301e96ddcad9b66e17 (diff)
[FIX] stock : show complete name of location
closes odoo/odoo#68617 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/stock/models/stock_location.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/models/stock_location.py b/addons/stock/models/stock_location.py
index 5013038e686..b892d3df965 100644
--- a/addons/stock/models/stock_location.py
+++ b/addons/stock/models/stock_location.py
@@ -112,7 +112,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'],