diff --git a/partner_vat_unique/README.rst b/partner_vat_unique/README.rst index bf916dc8a..980af41b2 100644 --- a/partner_vat_unique/README.rst +++ b/partner_vat_unique/README.rst @@ -1,15 +1,37 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - - ================== Partner VAT Unique ================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fpartner--contact-lightgray.png?logo=github + :target: https://github.com/OCA/partner-contact/tree/12.0/partner_vat_unique + :alt: OCA/partner-contact +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-partner_vat_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/134/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + Module to make the VAT number unique for customers and suppliers. Will not consider empty VATs as duplicated. +**Table of contents** + +.. contents:: + :local: Installation ============ @@ -17,44 +39,45 @@ Installation Will not check previous VAT duplicates, so it is recomended make sure there isn't any duplicated VAT before installation. - Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smash it by providing detailed and welcomed feedback. +Bugs are tracked on `GitHub 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 `_. +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* Grant Thornton S.L.P Contributors ------------- +~~~~~~~~~~~~ * Ismael Calvo * Vicent Cubells * Michael Michot +* Koen Loodts -Do not contact contributors directly about support or help with technical issues. +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/partner-contact `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/partner_vat_unique/__manifest__.py b/partner_vat_unique/__manifest__.py index 2cd22ccd0..c48483add 100644 --- a/partner_vat_unique/__manifest__.py +++ b/partner_vat_unique/__manifest__.py @@ -2,7 +2,9 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Partner VAT Unique", - "version": "11.0.1.0.0", + "summary": + "Module to make the VAT number unique for customers and suppliers.", + "version": "12.0.1.0.0", "category": "Customer Relationship Management", "website": "https://github.com/OCA/partner-contact", "author": "Grant Thornton S.L.P, Odoo Community Association (OCA)", diff --git a/partner_vat_unique/readme/CONTRIBUTORS.rst b/partner_vat_unique/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..1d3d7966d --- /dev/null +++ b/partner_vat_unique/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Ismael Calvo +* Vicent Cubells +* Michael Michot +* Koen Loodts diff --git a/partner_vat_unique/readme/DESCRIPTION.rst b/partner_vat_unique/readme/DESCRIPTION.rst new file mode 100644 index 000000000..e463f5434 --- /dev/null +++ b/partner_vat_unique/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +Module to make the VAT number unique for customers and suppliers. Will not +consider empty VATs as duplicated. diff --git a/partner_vat_unique/readme/INSTALL.rst b/partner_vat_unique/readme/INSTALL.rst new file mode 100644 index 000000000..10422fe3d --- /dev/null +++ b/partner_vat_unique/readme/INSTALL.rst @@ -0,0 +1,2 @@ +Will not check previous VAT duplicates, so it is recomended make sure there +isn't any duplicated VAT before installation. diff --git a/partner_vat_unique/static/description/index.html b/partner_vat_unique/static/description/index.html new file mode 100644 index 000000000..9879b0c5d --- /dev/null +++ b/partner_vat_unique/static/description/index.html @@ -0,0 +1,429 @@ + + + + + + +Partner VAT Unique + + + +
+

Partner VAT Unique

+ + +

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runbot

+

Module to make the VAT number unique for customers and suppliers. Will not +consider empty VATs as duplicated.

+

Table of contents

+ +
+

Installation

+

Will not check previous VAT duplicates, so it is recomended make sure there +isn’t any duplicated VAT before installation.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Grant Thornton S.L.P
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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/partner-contact project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/partner_vat_unique/tests/test_vat_unique.py b/partner_vat_unique/tests/test_vat_unique.py index 1d575fa09..104303ee8 100644 --- a/partner_vat_unique/tests/test_vat_unique.py +++ b/partner_vat_unique/tests/test_vat_unique.py @@ -9,14 +9,15 @@ class TestVatUnique(SavepointCase): @classmethod def setUpClass(cls): super(TestVatUnique, cls).setUpClass() - cls.partner = cls.env['res.partner'].create({ + cls.partner_model = cls.env['res.partner'] + cls.partner = cls.partner_model.create({ 'name': 'Test partner', 'vat': 'ESA12345674' }) def test_duplicated_vat_creation(self): with self.assertRaises(ValidationError): - self.env['res.partner'].with_context(test_vat=True).create({ + self.partner_model.with_context(test_vat=True).create({ 'name': 'Second partner', 'vat': 'ESA12345674' })