From 7bf0994e19565b7c157554bbfbf4d2ea90267832 Mon Sep 17 00:00:00 2001 From: Juhil Somaiya Date: Wed, 17 Apr 2019 08:56:02 +0000 Subject: [PATCH] [IMP] purchase: added more meaningful error message While confirming the quotation if there is no seller who's matching the requirements at that time error message was not clean. So that, changed that message to a more meaningful new message. TaskID - 1948751 closes odoo/odoo#32644 Signed-off-by: Arnold Moyaux --- addons/purchase_stock/models/stock_rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase_stock/models/stock_rule.py b/addons/purchase_stock/models/stock_rule.py index 77d571b9171..aa908bf529f 100644 --- a/addons/purchase_stock/models/stock_rule.py +++ b/addons/purchase_stock/models/stock_rule.py @@ -45,7 +45,7 @@ class StockRule(models.Model): uom_id=procurement.product_uom) if not supplier: - msg = _('There is no vendor associated to the product %s. Please define a vendor for this product.') % (procurement.product_id.display_name,) + msg = _('There is no matching vendor price to generate the purchase order for product %s (no vendor defined, minimum quantity not reached, dates not valid, ...). Go on the product form and complete the list of vendors.') % (procurement.product_id.display_name) raise UserError(msg) partner = supplier.name