diff --git a/invoice.py b/invoice.py index 2105906..25ba36d 100644 --- a/invoice.py +++ b/invoice.py @@ -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), diff --git a/tests/test_account_invoice_consecutive.py b/tests/test_account_invoice_consecutive.py index c194d51..4108902 100644 --- a/tests/test_account_invoice_consecutive.py +++ b/tests/test_account_invoice_consecutive.py @@ -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')