changeset f767e144e583 in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=f767e144e583
description:
Add missing gettext call when raising ProductCostPriceError
issue8930
diffstat:
product.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (18 lines):
diff -r eb8be9375a53 -r f767e144e583 product.py
--- a/product.py Sun Jan 26 21:10:40 2020 +0100
+++ b/product.py Sun Jan 26 21:32:38 2020 +0100
@@ -815,10 +815,10 @@
raise ValueError
except Exception as exception:
raise ProductCostPriceError(
- 'stock.msg_invalid_cost_price',
- cost_price=self.cost_price,
- product=self.product.rec_name,
- exception=exception) from exception
+ gettext('stock.msg_invalid_cost_price',
+ cost_price=self.cost_price,
+ product=self.product.rec_name,
+ exception=exception)) from exception
def get_cost_price(self, cost_price, **context):
context.setdefault('names', {})['cost_price'] = cost_price