diff options
| author | Florent de Labarre <florent.mirieu@gmail.com> | 2021-03-31 17:00:15 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-31 17:00:15 +0000 |
| commit | d4206d4a4a4cc527351a1c9cea0af0cf53dfd500 (patch) | |
| tree | d29a4d80b1278a7e07632de36078b388c89f31ff /addons/stock | |
| parent | 3e5130d90127d9634c48e5301e96ddcad9b66e17 (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/stock')
| -rw-r--r-- | addons/stock/models/stock_location.py | 2 |
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'], |
