Skip to content

Commit

Permalink
Merge PR OCA#623 into 13.0
Browse files Browse the repository at this point in the history
Signed-off-by sbidoul
  • Loading branch information
OCA-git-bot committed Feb 20, 2020
2 parents 3ece3b3 + 81f88c7 commit 248ee65
Show file tree
Hide file tree
Showing 59 changed files with 2,540 additions and 0 deletions.
79 changes: 79 additions & 0 deletions account_invoice_supplier_ref_unique/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
=========================================
Unique Supplier Invoice Number in Invoice
=========================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/13.0/account_invoice_supplier_ref_unique
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-13-0/account-invoicing-13-0-account_invoice_supplier_ref_unique
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/95/13.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module checks that a supplier invoice/refund is not entered twice. This is important because if you enter twice the same supplier invoice, there is also a risk that you pay it twice !

This module adds a constraint on supplier invoice/refunds to check that (commercial_partner_id, supplier_invoice_number) is unique, without considering the case of the supplier invoice number.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_invoice_supplier_ref_unique%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Savoir-faire Linux
* Acsone SA/NV

Contributors
~~~~~~~~~~~~

* Marc Cassuto <marc.cassuto@savoirfairelinux.com>
* Mathieu Benoit <mathieu.benoit@savoirfairelinux.com>
* Alexis de Lattre <alexis.delattre@akretion.com>
* Thomas Binsfeld <thomas.binsfeld@acsone.eu>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/13.0/account_invoice_supplier_ref_unique>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_invoice_supplier_ref_unique/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions account_invoice_supplier_ref_unique/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2016 Acsone
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Unique Supplier Invoice Number in Invoice",
"version": "13.0.1.0.0",
"summary": "Checks that supplier invoices are not entered twice",
"author": "Savoir-faire Linux, Acsone SA/NV, Odoo Community Association (OCA)",
"maintainer": "Savoir-faire Linux",
"website": "https://github.com/OCA/account-invoicing",
"license": "AGPL-3",
"category": "Accounting & Finance",
"depends": ["account"],
"data": ["views/account_move.xml"],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_supplier_ref_unique
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \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_supplier_ref_unique
#: model:ir.model,name:account_invoice_supplier_ref_unique.model_account_invoice
msgid "Invoice"
msgstr ""

#. module: account_invoice_supplier_ref_unique
#: code:addons/account_invoice_supplier_ref_unique/models/account_invoice.py:35
#, python-format
msgid "The invoice/refund with supplier invoice number '%s' already exists in Odoo under the number '%s' for supplier '%s'."
msgstr ""

#. module: account_invoice_supplier_ref_unique
#: model:ir.model.fields,field_description:account_invoice_supplier_ref_unique.field_account_invoice__supplier_invoice_number
msgid "Vendor invoice number"
msgstr ""

38 changes: 38 additions & 0 deletions account_invoice_supplier_ref_unique/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_supplier_ref_unique
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-29 02:39+0000\n"
"PO-Revision-Date: 2017-04-29 02:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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_supplier_ref_unique
#: model:ir.model,name:account_invoice_supplier_ref_unique.model_account_invoice
msgid "Invoice"
msgstr "فاتورة"

#. module: account_invoice_supplier_ref_unique
#: code:addons/account_invoice_supplier_ref_unique/models/account_invoice.py:34
#, python-format
msgid ""
"The invoice/refund with supplier invoice number '%s' already exists in Odoo "
"under the number '%s' for supplier '%s'."
msgstr ""

#. module: account_invoice_supplier_ref_unique
#: model:ir.model.fields,field_description:account_invoice_supplier_ref_unique.field_account_invoice_supplier_invoice_number
msgid "Vendor invoice number"
msgstr ""
37 changes: 37 additions & 0 deletions account_invoice_supplier_ref_unique/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_supplier_ref_unique
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-29 02:39+0000\n"
"PO-Revision-Date: 2017-04-29 02:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
"Language: bg\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: account_invoice_supplier_ref_unique
#: model:ir.model,name:account_invoice_supplier_ref_unique.model_account_invoice
msgid "Invoice"
msgstr "Фактура"

#. module: account_invoice_supplier_ref_unique
#: code:addons/account_invoice_supplier_ref_unique/models/account_invoice.py:34
#, python-format
msgid ""
"The invoice/refund with supplier invoice number '%s' already exists in Odoo "
"under the number '%s' for supplier '%s'."
msgstr ""

#. module: account_invoice_supplier_ref_unique
#: model:ir.model.fields,field_description:account_invoice_supplier_ref_unique.field_account_invoice_supplier_invoice_number
msgid "Vendor invoice number"
msgstr ""
38 changes: 38 additions & 0 deletions account_invoice_supplier_ref_unique/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_supplier_ref_unique
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-29 02:39+0000\n"
"PO-Revision-Date: 2017-04-29 02:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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_supplier_ref_unique
#: model:ir.model,name:account_invoice_supplier_ref_unique.model_account_invoice
msgid "Invoice"
msgstr "Faktura"

#. module: account_invoice_supplier_ref_unique
#: code:addons/account_invoice_supplier_ref_unique/models/account_invoice.py:34
#, python-format
msgid ""
"The invoice/refund with supplier invoice number '%s' already exists in Odoo "
"under the number '%s' for supplier '%s'."
msgstr ""

#. module: account_invoice_supplier_ref_unique
#: model:ir.model.fields,field_description:account_invoice_supplier_ref_unique.field_account_invoice_supplier_invoice_number
msgid "Vendor invoice number"
msgstr ""
37 changes: 37 additions & 0 deletions account_invoice_supplier_ref_unique/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_supplier_ref_unique
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-29 02:39+0000\n"
"PO-Revision-Date: 2017-04-29 02:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: account_invoice_supplier_ref_unique
#: model:ir.model,name:account_invoice_supplier_ref_unique.model_account_invoice
msgid "Invoice"
msgstr "Factura"

#. module: account_invoice_supplier_ref_unique
#: code:addons/account_invoice_supplier_ref_unique/models/account_invoice.py:34
#, python-format
msgid ""
"The invoice/refund with supplier invoice number '%s' already exists in Odoo "
"under the number '%s' for supplier '%s'."
msgstr ""

#. module: account_invoice_supplier_ref_unique
#: model:ir.model.fields,field_description:account_invoice_supplier_ref_unique.field_account_invoice_supplier_invoice_number
msgid "Vendor invoice number"
msgstr ""
37 changes: 37 additions & 0 deletions account_invoice_supplier_ref_unique/i18n/cs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_supplier_ref_unique
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-29 02:39+0000\n"
"PO-Revision-Date: 2017-04-29 02:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#. module: account_invoice_supplier_ref_unique
#: model:ir.model,name:account_invoice_supplier_ref_unique.model_account_invoice
msgid "Invoice"
msgstr "Faktura"

#. module: account_invoice_supplier_ref_unique
#: code:addons/account_invoice_supplier_ref_unique/models/account_invoice.py:34
#, python-format
msgid ""
"The invoice/refund with supplier invoice number '%s' already exists in Odoo "
"under the number '%s' for supplier '%s'."
msgstr ""

#. module: account_invoice_supplier_ref_unique
#: model:ir.model.fields,field_description:account_invoice_supplier_ref_unique.field_account_invoice_supplier_invoice_number
msgid "Vendor invoice number"
msgstr ""
39 changes: 39 additions & 0 deletions account_invoice_supplier_ref_unique/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_supplier_ref_unique
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-02 03:40+0000\n"
"PO-Revision-Date: 2018-02-02 03:40+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: account_invoice_supplier_ref_unique
#: model:ir.model,name:account_invoice_supplier_ref_unique.model_account_invoice
msgid "Invoice"
msgstr "Rechnung"

#. module: account_invoice_supplier_ref_unique
#: code:addons/account_invoice_supplier_ref_unique/models/account_invoice.py:34
#, python-format
msgid ""
"The invoice/refund with supplier invoice number '%s' already exists in Odoo "
"under the number '%s' for supplier '%s'."
msgstr ""
"Die Rechnung/Gutschrift mit der Lieferantenrechnungsnummer '%s' existiert "
"bereits in Odoo unter der Nummer '%s' für Lieferant '%s'."

#. module: account_invoice_supplier_ref_unique
#: model:ir.model.fields,field_description:account_invoice_supplier_ref_unique.field_account_invoice_supplier_invoice_number
msgid "Vendor invoice number"
msgstr "Lieferanten Rechnungsnummer "
Loading

0 comments on commit 248ee65

Please sign in to comment.