Commit 8a2a8913 authored by santi's avatar santi
Browse files

Validation addon

parent 8e3784ec
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: Joël Grand-Guillaume
# Copyright 2010-2015 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from . import invoice
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: Joël Grand-Guillaume (Camptocamp)
# Copyright 2010-2015 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Add "To Send" and "To Validate" states in Invoices',
'version': '8.0.1.0.1',
'category': 'Generic Modules/Invoicing',
'description':
'''
This module adds 2 states between draft and open state in invoices:
- To Validate: For invoices which need a validation
- To Send: For all invoices that need to be sent
''',
'author': "Camptocamp,Odoo Community Association (OCA)",
'website': 'http://camptocamp.com',
'license': 'AGPL-3',
'depends': ['account'],
'data': [
'invoice_wkf.xml',
'invoice_view.xml',
],
'demo': [],
'test': [],
'installable': True,
'auto_install': False,
'application': False
}
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_validation_workflow
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-26 09:13+0000\n"
"PO-Revision-Date: 2015-01-26 09:13+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Approve"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:97
#, python-format
msgid "Can not %s draft/proforma/cancel invoice."
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:101
#, python-format
msgid "Can not %s invoice which is already reconciled, invoice should be unreconciled first. You can only Refund this invoice"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Cancel"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:142
#, python-format
msgid "Data Insufficient !"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:96
#: code:addons/account_invoice_validation_workflow/invoice.py:100
#, python-format
msgid "Error !"
msgstr ""
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice
msgid "Invoice"
msgstr ""
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice_refund
msgid "Invoice Refund"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Invoice To Send"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Invoice to send"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:143
#, python-format
msgid "No Period found on Invoice!"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "PRO-FORMA"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Print"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Print Invoice"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Re-Open"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Refund"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Reset to Draft"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Set to Draft"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.view_account_invoice_filter
msgid "To Send"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.view_account_invoice_filter
msgid "To Send Invoices"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.view_account_invoice_filter
msgid "To Validate"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.view_account_invoice_filter
msgid "To Validate Invoices"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "To Validation"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Validate"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:44
#, python-format
msgid "You are trying to validate invoice lines linked to a closed or cancelled Analytic Account.\n"
"\n"
"Check the following lines:"
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_validation_workflow
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: account-invoicing (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-15 17:51+0000\n"
"PO-Revision-Date: 2015-06-03 04:58+0000\n"
"Last-Translator: <>\n"
"Language-Team: Amharic (http://www.transifex.com/oca/OCA-account-invoicing-8-0/language/am/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: am\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Approve"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:98
#, python-format
msgid "Can not %s draft/proforma/cancel invoice."
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:102
#, python-format
msgid ""
"Can not %s invoice which is already reconciled, invoice should be "
"unreconciled first. You can only Refund this invoice"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Cancel"
msgstr "Cancelar"
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:143
#, python-format
msgid "Data Insufficient !"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:97
#: code:addons/account_invoice_validation_workflow/invoice.py:101
#, python-format
msgid "Error !"
msgstr ""
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice
msgid "Invoice"
msgstr ""
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice_refund
msgid "Invoice Refund"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Invoice To Send"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Invoice to send"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:144
#, python-format
msgid "No Period found on Invoice!"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "PRO-FORMA"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Print"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Print Invoice"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Re-Open"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Refund"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Reset to Draft"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Set to Draft"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.view_account_invoice_filter
msgid "To Send"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.view_account_invoice_filter
msgid "To Send Invoices"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.view_account_invoice_filter
msgid "To Validate"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.view_account_invoice_filter
msgid "To Validate Invoices"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "To Validation"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Validate"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:45
#, python-format
msgid ""
"You are trying to validate invoice lines linked to a closed or cancelled Analytic Account.\n"
"\n"
"Check the following lines:"
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_validation_workflow
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: account-invoicing (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-21 02:58+0000\n"
"PO-Revision-Date: 2017-10-04 12:28+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Arabic (http://www.transifex.com/oca/OCA-account-invoicing-8-0/language/ar/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ar\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice
msgid "Invoice"
msgstr "فاتورة"
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice_refund
msgid "Invoice Refund"
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_validation_workflow
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: account-invoicing (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-21 02:58+0000\n"
"PO-Revision-Date: 2017-10-04 12:28+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Bulgarian (http://www.transifex.com/oca/OCA-account-invoicing-8-0/language/bg/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: bg\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice
msgid "Invoice"
msgstr "Фактура"
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice_refund
msgid "Invoice Refund"
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_validation_workflow
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: account-invoicing (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-21 02:58+0000\n"
"PO-Revision-Date: 2017-10-04 12:28+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Bosnian (http://www.transifex.com/oca/OCA-account-invoicing-8-0/language/bs/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: bs\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice
msgid "Invoice"
msgstr "Faktura"
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice_refund
msgid "Invoice Refund"
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_validation_workflow
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: account-invoicing (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-21 02:58+0000\n"
"PO-Revision-Date: 2017-10-04 12:28+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Catalan (http://www.transifex.com/oca/OCA-account-invoicing-8-0/language/ca/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice
msgid "Invoice"
msgstr "Factura"
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice_refund
msgid "Invoice Refund"
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_validation_workflow
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: account-invoicing (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-17 03:48+0000\n"
"PO-Revision-Date: 2015-06-03 04:58+0000\n"
"Last-Translator: <>\n"
"Language-Team: Catalan (Spain) (http://www.transifex.com/oca/OCA-account-invoicing-8-0/language/ca_ES/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ca_ES\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Approve"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:98
#, python-format
msgid "Can not %s draft/proforma/cancel invoice."
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:102
#, python-format
msgid ""
"Can not %s invoice which is already reconciled, invoice should be "
"unreconciled first. You can only Refund this invoice"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Cancel"
msgstr "Cancel·la"
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:143
#, python-format
msgid "Data Insufficient !"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:97
#: code:addons/account_invoice_validation_workflow/invoice.py:101
#, python-format
msgid "Error !"
msgstr ""
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice
msgid "Invoice"
msgstr ""
#. module: account_invoice_validation_workflow
#: model:ir.model,name:account_invoice_validation_workflow.model_account_invoice_refund
msgid "Invoice Refund"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Invoice To Send"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Invoice to send"
msgstr ""
#. module: account_invoice_validation_workflow
#: code:addons/account_invoice_validation_workflow/invoice.py:144
#, python-format
msgid "No Period found on Invoice!"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "PRO-FORMA"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Print"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
msgid "Print Invoice"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Re-Open"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl
#: view:account.invoice:account_invoice_validation_workflow.invoice_supplier_form_validation_wkfl
msgid "Refund"
msgstr ""
#. module: account_invoice_validation_workflow
#: view:account.invoice:account_invoice_validation_workflow.invoice_form_validation_wkfl