[FIX] Test if invoice have credit control line in non draft state before deleting it

This commit is contained in:
Vincent Renaville
2013-09-12 16:39:17 +02:00
parent b4ab6cad6d
commit 8a19a3058e
5 changed files with 30 additions and 0 deletions

View File

@@ -27,3 +27,4 @@ from . import policy
from . import company
from . import wizard
from . import report
from . import invoice

View File

@@ -363,6 +363,14 @@ msgstr ""
msgid "Lines marker"
msgstr "Lines marker"
#. module: account_credit_control
#: code:addons/account_credit_control/invoice.py:35
#, python-format
msgid "You cannot cancel this invoice ! A payment reminder has already been sent to the customer.You must create a credit note and raise a new invoice."
msgstr "You cannot cancel this invoice ! A payment reminder has already been sent to the customer.You must create a credit note and raise a new invoice."
#. module: account_credit_control
#: field:credit.control.printer,state:0
msgid "state"

View File

@@ -363,6 +363,14 @@ msgstr ""
msgid "Lines marker"
msgstr "Lines marker"
#. module: account_credit_control
#: code:addons/account_credit_control/invoice.py:35
#, python-format
msgid "You cannot cancel this invoice ! A payment reminder has already been sent to the customer.You must create a credit note and raise a new invoice."
msgstr "You cannot cancel this invoice ! A payment reminder has already been sent to the customer.You must create a credit note and raise a new invoice."
#. module: account_credit_control
#: field:credit.control.printer,state:0
msgid "state"

View File

@@ -368,6 +368,12 @@ msgstr "Lines marker"
msgid "state"
msgstr "state"
#. module: account_credit_control
#: code:addons/account_credit_control/invoice.py:35
#, python-format
msgid "You cannot cancel this invoice ! A payment reminder has already been sent to the customer.You must create a credit note and raise a new invoice."
msgstr "You cannot cancel this invoice ! A payment reminder has already been sent to the customer.You must create a credit note and raise a new invoice."
#. module: account_credit_control
#: field:credit.control.run,report:0
msgid "Report"

View File

@@ -345,6 +345,13 @@ msgstr ""
msgid "Lines marker"
msgstr "Traiter les lignes"
#. module: account_credit_control
#: code:addons/account_credit_control/invoice.py:35
#, python-format
msgid "You cannot cancel this invoice ! A payment reminder has already been sent to the customer.You must create a credit note and raise a new invoice."
msgstr "Vous ne pouvez pas annuler cette facture ! Une lettre de relance a été envoyé au client. Vous devez créer un avoir et établir une nouvelle facture."
#. module: account_credit_control
#: field:credit.control.printer,state:0
msgid "state"