From db136c64c3be891c1f1d2f8a774d793e1aecc171 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sat, 19 Nov 2016 00:51:16 +0100 Subject: [PATCH] Port base_vat_sanitized to v10 --- base_vat_sanitized/README.rst | 10 +++------- base_vat_sanitized/{__openerp__.py => __manifest__.py} | 2 +- base_vat_sanitized/models/res_partner.py | 2 +- base_vat_sanitized/tests/test_vat.py | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) rename base_vat_sanitized/{__openerp__.py => __manifest__.py} (94%) diff --git a/base_vat_sanitized/README.rst b/base_vat_sanitized/README.rst index 765ba8de6..ec5552115 100644 --- a/base_vat_sanitized/README.rst +++ b/base_vat_sanitized/README.rst @@ -6,7 +6,7 @@ Base VAT Sanitized ================== -This module adds a technical field *sanitized_vat* on partners that stores the VAT number without spaces and with letters in uppercase. It is useful for other modules that need to match partners on VAT number, such as the *account_invoice_import* module for example. +This module adds a technical field *sanitized_vat* on partners that stores the VAT number without spaces and with letters in uppercase. It is useful for other modules that need to match partners on VAT number, such as the *base_business_document_import* module for example. Configuration ============= @@ -20,7 +20,7 @@ This module doesn't bring any visible feature for the users. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/134/8.0 + :target: https://runbot.odoo-community.org/runbot/134/10.0 Bug Tracker @@ -29,11 +29,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 -`_. +help us smashing it by providing a detailed and welcomed feedback. Credits ======= diff --git a/base_vat_sanitized/__openerp__.py b/base_vat_sanitized/__manifest__.py similarity index 94% rename from base_vat_sanitized/__openerp__.py rename to base_vat_sanitized/__manifest__.py index 61963525c..05e4d161c 100644 --- a/base_vat_sanitized/__openerp__.py +++ b/base_vat_sanitized/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Base VAT Sanitized', - 'version': '8.0.1.0.0', + 'version': '10.0.1.0.0', 'category': 'Hidden/Dependency', 'license': 'AGPL-3', 'summary': 'Adds field sanitized_vat on partners', diff --git a/base_vat_sanitized/models/res_partner.py b/base_vat_sanitized/models/res_partner.py index d32d7a4bb..d1fe5dfa2 100644 --- a/base_vat_sanitized/models/res_partner.py +++ b/base_vat_sanitized/models/res_partner.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # @author Alexis de Lattre -from openerp import models, fields, api +from odoo import models, fields, api import re diff --git a/base_vat_sanitized/tests/test_vat.py b/base_vat_sanitized/tests/test_vat.py index 0fa239a1b..faad406d3 100644 --- a/base_vat_sanitized/tests/test_vat.py +++ b/base_vat_sanitized/tests/test_vat.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # @author Alexis de Lattre -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase class TestVatSanitized(TransactionCase):