committed by
Martin Trigaux
parent
054e06e223
commit
c36c5454ae
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user