diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index baa566d4e20..4a49bb3b5f9 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -52,7 +52,7 @@ class account_abstract_payment(models.AbstractModel): @api.constrains('amount') def _check_amount(self): if not self.amount > 0.0: - raise ValidationError('The payment amount must be strictly positive.') + raise ValidationError(_('The payment amount must be strictly positive.')) @api.one @api.depends('payment_type', 'journal_id') diff --git a/addons/account/static/src/js/account_payment_widget.js b/addons/account/static/src/js/account_payment_widget.js index a7f2b64c413..2c9e947d32a 100644 --- a/addons/account/static/src/js/account_payment_widget.js +++ b/addons/account/static/src/js/account_payment_widget.js @@ -7,6 +7,7 @@ var formats = require('web.formats'); var Model = require('web.Model'); var QWeb = core.qweb; +var _t = core._t; var ShowPaymentLineWidget = form_common.AbstractField.extend({ render_value: function() { @@ -49,7 +50,7 @@ var ShowPaymentLineWidget = form_common.AbstractField.extend({ }), 'html': true, 'placement': 'left', - 'title': 'Payment Information', + 'title': _t('Payment Information'), 'trigger': 'focus', 'delay': { "show": 0, "hide": 100 }, }; @@ -89,4 +90,4 @@ var ShowPaymentLineWidget = form_common.AbstractField.extend({ core.form_widget_registry.add('payment', ShowPaymentLineWidget); -}); \ No newline at end of file +});