From 0510970d1280bb329e820b9c824bffd76d617b7f Mon Sep 17 00:00:00 2001 From: dbh Date: Thu, 21 Sep 2017 11:08:00 +0530 Subject: [PATCH] [IMP] stock_account: improve UserError for products without a cost --- addons/stock_account/models/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock_account/models/stock.py b/addons/stock_account/models/stock.py index 627399b1375..a20f32a5c3f 100644 --- a/addons/stock_account/models/stock.py +++ b/addons/stock_account/models/stock.py @@ -389,7 +389,7 @@ class StockMove(models.Model): # check that all data is correct if self.company_id.currency_id.is_zero(debit_value): - raise UserError(_("The found valuation amount for product %s is zero. Which means there is probably a configuration error. Check the costing method and the standard price") % (self.product_id.name,)) + raise UserError(_("The cost of %s is currently equal to 0. Change the cost or the configuration of your product to avoid an incorrect valuation.") % (self.product_id.name,)) credit_value = debit_value if self.product_id.cost_method == 'average' and self.company_id.anglo_saxon_accounting: