fix mispelled code
This commit is contained in:
parent
1ab00e6c44
commit
991cf377cc
|
@ -33,7 +33,7 @@ class Invoice(metaclass=PoolMeta):
|
||||||
|
|
||||||
raise UserError(gettext(
|
raise UserError(gettext(
|
||||||
'account_invoice_consecutive.not_same_dates',
|
'account_invoice_consecutive.not_same_dates',
|
||||||
invoice_date'=Lang.strftime(self.invoice_date,
|
invoice_date=Lang.strftime(self.invoice_date,
|
||||||
language.code, language.date),
|
language.code, language.date),
|
||||||
accounting_date= Lang.strftime(self.accounting_date,
|
accounting_date= Lang.strftime(self.accounting_date,
|
||||||
language.code, language.date)))
|
language.code, language.date)))
|
||||||
|
@ -97,7 +97,7 @@ class Invoice(metaclass=PoolMeta):
|
||||||
} for inv in invs]
|
} for inv in invs]
|
||||||
info = '\n'.join(info)
|
info = '\n'.join(info)
|
||||||
raise UserError(gettext(
|
raise UserError(gettext(
|
||||||
'account_invoice_consecutiveinvalid_number_date',
|
'account_invoice_consecutive.invalid_number_date',
|
||||||
invoice_number=invoice.number,
|
invoice_number=invoice.number,
|
||||||
invoice_date=language.strftime(invoice.invoice_date),
|
invoice_date=language.strftime(invoice.invoice_date),
|
||||||
invoice_count=len(invs),
|
invoice_count=len(invs),
|
||||||
|
|
|
@ -19,7 +19,7 @@ class AccountInvoiceConsecutiveTestCase(ModuleTestCase):
|
||||||
module = 'account_invoice_consecutive'
|
module = 'account_invoice_consecutive'
|
||||||
|
|
||||||
@with_transaction()
|
@with_transaction()
|
||||||
def test0010check_credit_limit(self):
|
def test0010check_invoice_date(self):
|
||||||
'Test check_credit_limit'
|
'Test check_credit_limit'
|
||||||
pool = Pool()
|
pool = Pool()
|
||||||
FiscalYear = pool.get('account.fiscalyear')
|
FiscalYear = pool.get('account.fiscalyear')
|
||||||
|
|
Loading…
Reference in New Issue