From 8d7894e98ec14e704c7f1d708c6358c18e0f19ff Mon Sep 17 00:00:00 2001 From: Harald Panten Date: Sat, 9 May 2020 19:31:26 +0200 Subject: [PATCH] [MIG]base_vat_optional_vies: Migration to 13.0 --- base_vat_optional_vies/README.rst | 10 +++++----- base_vat_optional_vies/models/res_partner.py | 2 +- base_vat_optional_vies/readme/CONTRIBUTORS.rst | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/base_vat_optional_vies/README.rst b/base_vat_optional_vies/README.rst index 5ca7ff05..a7a22bc1 100644 --- a/base_vat_optional_vies/README.rst +++ b/base_vat_optional_vies/README.rst @@ -14,13 +14,13 @@ Optional validation of VAT via VIES :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--financial--tools-lightgray.png?logo=github - :target: https://github.com/OCA/account-financial-tools/tree/12.0/base_vat_optional_vies + :target: https://github.com/OCA/account-financial-tools/tree/13.0/base_vat_optional_vies :alt: OCA/account-financial-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-base_vat_optional_vies + :target: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-base_vat_optional_vies :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/92/12.0 + :target: https://runbot.odoo-community.org/runbot/92/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -70,7 +70,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -105,6 +105,6 @@ 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-financial-tools `_ project on GitHub. +This module is part of the `OCA/account-financial-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_vat_optional_vies/models/res_partner.py b/base_vat_optional_vies/models/res_partner.py index deb39406..bddc3d13 100644 --- a/base_vat_optional_vies/models/res_partner.py +++ b/base_vat_optional_vies/models/res_partner.py @@ -31,7 +31,7 @@ class ResPartner(models.Model): return self.simple_vat_check(country_code, vat_number) return res - @api.constrains("vat") + @api.constrains("vat", "country_id") def check_vat(self): for partner in self: partner = partner.with_context(vat_partner=partner) diff --git a/base_vat_optional_vies/readme/CONTRIBUTORS.rst b/base_vat_optional_vies/readme/CONTRIBUTORS.rst index c6804a03..edbc57e1 100644 --- a/base_vat_optional_vies/readme/CONTRIBUTORS.rst +++ b/base_vat_optional_vies/readme/CONTRIBUTORS.rst @@ -4,3 +4,4 @@ * David Vidal * Rodrigo Bonilla * Alexandre Díaz +* Harald Panten