summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Taferner <wtaferner@users.noreply.github.com>2019-01-02 10:36:08 +0000
committerWolfgang Taferner <wtaferner@users.noreply.github.com>2019-01-02 10:36:57 +0000
commitd82c0d133ed7e8ccc236a2e9a179e0e879f74df0 (patch)
treefd3f01ad719942e7b7cfb5d6b320f712254654fe
parent7d45e43a136957afbfee2cd7bf432d78eb24ecbf (diff)
[FIX] stock: tell the user which product is causing the issue
closes odoo/odoo#29857
-rw-r--r--addons/stock/models/stock_inventory.py2
1 files changed, 1 insertions, 1 deletions
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([