From d82c0d133ed7e8ccc236a2e9a179e0e879f74df0 Mon Sep 17 00:00:00 2001 From: Wolfgang Taferner Date: Wed, 2 Jan 2019 10:36:08 +0000 Subject: [PATCH] [FIX] stock: tell the user which product is causing the issue closes odoo/odoo#29857 --- addons/stock/models/stock_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_inventory.py b/addons/stock/models/stock_inventory.py index e1dbd631410..5dacb1b5b25 100644 --- a/addons/stock/models/stock_inventory.py +++ b/addons/stock/models/stock_inventory.py @@ -406,7 +406,7 @@ class InventoryLine(models.Model): """ for line in self: if line.product_id.type != 'product': - raise UserError(_("You can only adjust stockable products.")) + raise UserError(_("You can only adjust stockable products.") + '\n\n%s -> %s' % (line.product_id.display_name, line.product_id.type)) def _get_quants(self): return self.env['stock.quant'].search([