[FIX] account: untranslated string

Closes #17133
Closes #17137
This commit is contained in:
sum1201
2017-05-26 10:50:20 +02:00
committed by Martin Trigaux
parent 95e0c90e63
commit 447c2770b0
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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')
@@ -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);
});
});