[FIX] hr_expense: untranslated string

Closes #17255
This commit is contained in:
Yenthe V.G
2017-05-29 11:01:59 +02:00
committed by Martin Trigaux
parent 054e06e223
commit c36c5454ae
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -1129,6 +1129,12 @@ msgstr ""
msgid "The payment method used when the expense is paid by the company."
msgstr ""
#. module: hr_expense
#: code:addons/hr_expense/wizard/hr_expense_register_payment.py:35
#, python-format
msgid "The payment amount must be strictly positive."
msgstr ""
#. module: hr_expense
#: model:ir.ui.view,arch_db:hr_expense.hr_expense_planner
msgid "The photo of the receipt and the description of the email will\n"
@@ -32,7 +32,7 @@ class HrExpenseRegisterPaymentWizard(models.TransientModel):
@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('journal_id')