fix mispelled code

This commit is contained in:
?ngel ?lvarez 2019-01-06 10:08:36 +01:00
parent 1ab00e6c44
commit 991cf377cc
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class Invoice(metaclass=PoolMeta):
raise UserError(gettext(
'account_invoice_consecutive.not_same_dates',
invoice_date'=Lang.strftime(self.invoice_date,
invoice_date=Lang.strftime(self.invoice_date,
language.code, language.date),
accounting_date= Lang.strftime(self.accounting_date,
language.code, language.date)))
@ -97,7 +97,7 @@ class Invoice(metaclass=PoolMeta):
} for inv in invs]
info = '\n'.join(info)
raise UserError(gettext(
'account_invoice_consecutiveinvalid_number_date',
'account_invoice_consecutive.invalid_number_date',
invoice_number=invoice.number,
invoice_date=language.strftime(invoice.invoice_date),
invoice_count=len(invs),

View File

@ -19,7 +19,7 @@ class AccountInvoiceConsecutiveTestCase(ModuleTestCase):
module = 'account_invoice_consecutive'
@with_transaction()
def test0010check_credit_limit(self):
def test0010check_invoice_date(self):
'Test check_credit_limit'
pool = Pool()
FiscalYear = pool.get('account.fiscalyear')