diff --git a/partner_identification_gln/README.rst b/partner_identification_gln/README.rst index de1d7da25..dbeb69323 100644 --- a/partner_identification_gln/README.rst +++ b/partner_identification_gln/README.rst @@ -39,6 +39,7 @@ Images Contributors ------------ +* Alvaro Estebanez * Denis Roussel * Meyomesse Gilles diff --git a/partner_identification_gln/__init__.py b/partner_identification_gln/__init__.py index 9e7304ea3..a9e337226 100644 --- a/partner_identification_gln/__init__.py +++ b/partner_identification_gln/__init__.py @@ -1,5 +1,2 @@ -# -*- coding: utf-8 -*- -# Copyright 2016-2017 ACSONE SA/NV () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/partner_identification_gln/__manifest__.py b/partner_identification_gln/__manifest__.py index ced0818dc..62482104e 100644 --- a/partner_identification_gln/__manifest__.py +++ b/partner_identification_gln/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016-2017 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). @@ -7,17 +6,20 @@ 'summary': """ This addon extends "Partner Identification Numbers" to provide a number category for GLN registration""", - 'version': '10.0.1.0.0', + 'version': '12.0.1.0.0', 'license': 'AGPL-3', 'author': 'Acsone S.A.,Odoo Community Association (OCA)', - 'website': 'https://www.acsone.eu', + 'website': 'https://github.com/OCA/partner-contact', 'external_dependencies': { - 'python': ['stdnum' - ], + 'python': [ + 'stdnum', + ], }, - 'depends': ['partner_identification' - ], - 'data': ['data/partner_identification_gln.xml' - ], + 'depends': [ + 'partner_identification', + ], + 'data': [ + 'data/partner_identification_gln.xml', + ], 'installable': True, } diff --git a/partner_identification_gln/data/partner_identification_gln.xml b/partner_identification_gln/data/partner_identification_gln.xml index e047a1ce7..132d539d4 100644 --- a/partner_identification_gln/data/partner_identification_gln.xml +++ b/partner_identification_gln/data/partner_identification_gln.xml @@ -2,14 +2,14 @@ - + GLN Identification Number gln_id_number - + GCP Identification Number gcp_id_number - \ No newline at end of file + diff --git a/partner_identification_gln/i18n/sl.po b/partner_identification_gln/i18n/sl.po index 7d951d030..b54d605c5 100644 --- a/partner_identification_gln/i18n/sl.po +++ b/partner_identification_gln/i18n/sl.po @@ -1,21 +1,18 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * partner_identification_gln -# -# Translators: -# Matjaž Mozetič , 2017 +# * partner_identification_gln +# msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-01 03:23+0000\n" -"PO-Revision-Date: 2017-06-01 03:23+0000\n" +"POT-Creation-Date: 2019-09-11 11:05+0000\n" +"PO-Revision-Date: 2019-09-11 11:05+0000\n" "Last-Translator: Matjaž Mozetič , 2017\n" "Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: sl\n" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" #. module: partner_identification_gln @@ -27,3 +24,8 @@ msgstr "GCP identifikacijska številka" #: model:res.partner.id_category,name:partner_identification_gln.partner_identification_gln_number_category msgid "GLN Identification Number" msgstr "GLN identifikacijska številka" + +#. module: partner_identification_gln +#: model:ir.model,name:partner_identification_gln.model_res_partner_id_category +msgid "Partner ID Category" +msgstr "Partnerjeve ID kategorije" diff --git a/partner_identification_gln/models/__init__.py b/partner_identification_gln/models/__init__.py index de83392e6..045a6d0d9 100644 --- a/partner_identification_gln/models/__init__.py +++ b/partner_identification_gln/models/__init__.py @@ -1,5 +1,2 @@ -# -*- coding: utf-8 -*- -# Copyright 2016-2017 ACSONE SA/NV () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from . import partner +from . import res_partner_id_category diff --git a/partner_identification_gln/models/partner.py b/partner_identification_gln/models/res_partner_id_category.py similarity index 94% rename from partner_identification_gln/models/partner.py rename to partner_identification_gln/models/res_partner_id_category.py index 9ea5f45e2..63a7d4151 100644 --- a/partner_identification_gln/models/partner.py +++ b/partner_identification_gln/models/res_partner_id_category.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016-2017 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). @@ -18,6 +17,7 @@ except ImportError: class ResPartnerIdCategory(models.Model): _inherit = 'res.partner.id_category' + @api.model def _search_duplicate(self, category_id, id_number, force_active=False): domain = [('category_id', '=', category_id), ('name', '=', id_number.name), @@ -26,8 +26,7 @@ class ResPartnerIdCategory(models.Model): if force_active: domain.append(('partner_id.active', '=', True)) - num_obj = self.env['res.partner.id_number'] - return num_obj.search(domain) + return self.env['res.partner.id_number'].search(domain) @api.multi def validate_res_partner_gln(self, id_number): diff --git a/partner_identification_gln/tests/__init__.py b/partner_identification_gln/tests/__init__.py index 56bc9598b..a7f8eb649 100644 --- a/partner_identification_gln/tests/__init__.py +++ b/partner_identification_gln/tests/__init__.py @@ -1,5 +1,2 @@ -# -*- coding: utf-8 -*- -# Copyright 2016-2017 ACSONE SA/NV () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import test_gln diff --git a/partner_identification_gln/tests/test_gln.py b/partner_identification_gln/tests/test_gln.py index 9560ba6df..94b631afe 100644 --- a/partner_identification_gln/tests/test_gln.py +++ b/partner_identification_gln/tests/test_gln.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Acsone S.A. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).