[REF] Account Invoice Constraint Chronology: improve code coverage
This commit is contained in:
parent
2571215d3d
commit
434a81e13d
@ -6,8 +6,6 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-01-30 16:31+0000\n"
|
||||
"PO-Revision-Date: 2019-01-30 16:31+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@ -21,13 +19,13 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid "Chronology Error. Please confirm older draft invoices before {date_invoice} and try again."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid "Chronology Error. There exist at least one invoice with a later date to {date_invoice}."
|
||||
msgstr ""
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr "Prüfe Chronologie"
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, fuzzy, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -35,7 +35,7 @@ msgstr ""
|
||||
"erneut."
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, fuzzy, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr "Vérifier la chronologie"
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, fuzzy, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -35,7 +35,7 @@ msgstr ""
|
||||
"avant le {date_invoice} et réessayer."
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, fuzzy, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -26,7 +26,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -34,7 +34,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -26,7 +26,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -34,7 +34,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, fuzzy, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -35,7 +35,7 @@ msgstr ""
|
||||
"ponovno."
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -25,7 +25,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -33,7 +33,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -24,7 +24,7 @@ msgid "Check Chronology"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:51
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:53
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. Please confirm older draft invoices before {date_invoice} "
|
||||
@ -32,7 +32,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: account_invoice_constraint_chronology
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:66
|
||||
#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Chronology Error. There exist at least one invoice with a later date to "
|
||||
|
@ -87,6 +87,18 @@ class TestAccountConstraintChronology(common.SavepointCase):
|
||||
with self.assertRaises(UserError):
|
||||
invoice_2.action_invoice_open()
|
||||
|
||||
def test_invoice_draft_no_check(self):
|
||||
journal = self.get_journal_check(False)
|
||||
today = datetime.now()
|
||||
yesterday = today - timedelta(days=1)
|
||||
date = yesterday.strftime(DEFAULT_SERVER_DATE_FORMAT)
|
||||
self.create_simple_invoice(journal.id, date)
|
||||
date = today.strftime(DEFAULT_SERVER_DATE_FORMAT)
|
||||
invoice_2 = self.create_simple_invoice(journal.id, date)
|
||||
self.assertTrue((invoice_2.state == 'draft'),
|
||||
"Initial invoice state is not Draft")
|
||||
self.assertTrue(invoice_2.action_invoice_open())
|
||||
|
||||
def test_invoice_validate(self):
|
||||
journal = self.get_journal_check(True)
|
||||
today = datetime.now()
|
||||
@ -114,3 +126,10 @@ class TestAccountConstraintChronology(common.SavepointCase):
|
||||
"Initial invoice state is not Draft")
|
||||
with self.assertRaises(UserError):
|
||||
invoice_2.action_invoice_open()
|
||||
|
||||
def test_journal_change_type(self):
|
||||
self.account_journal_sale.check_chronology = True
|
||||
self.assertTrue(self.account_journal_sale.check_chronology)
|
||||
self.account_journal_sale.type = 'bank'
|
||||
self.account_journal_sale._onchange_type()
|
||||
self.assertFalse(self.account_journal_sale.check_chronology)
|
||||
|
Loading…
Reference in New Issue
Block a user