From 87590333cc41fed74e0286e0dbc371d2f9dfcdd7 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 12 Aug 2016 22:05:58 +0200 Subject: [PATCH 01/10] crm_deduplicate_filter =========================================== Exclude some records from the deduplication =========================================== This module extends the possibilities of the contact deduplication allowing to filter the applicable set according several criteria. For now, only the filter for restricting the deduplication to only companies or only contacts is implemented. Usage ===== To use this module, you need to: "Parent company set (Contacts)" in the section 'Exclude contacts having'. kind of records. OCA Transbot updated translations from Transifex --- partner_deduplicate_filter/README.rst | 65 +++++++++++ partner_deduplicate_filter/__init__.py | 4 + partner_deduplicate_filter/__openerp__.py | 20 ++++ partner_deduplicate_filter/i18n/es.po | 32 ++++++ partner_deduplicate_filter/i18n/sl.po | 34 ++++++ .../static/description/icon.png | Bin 0 -> 11387 bytes .../static/description/icon.svg | 102 ++++++++++++++++++ partner_deduplicate_filter/tests/__init__.py | 4 + .../tests/test_crm_deduplicate_filter.py | 77 +++++++++++++ .../wizards/__init__.py | 5 + .../wizards/partner_merge.py | 35 ++++++ .../wizards/partner_merge_view.xml | 21 ++++ 12 files changed, 399 insertions(+) create mode 100644 partner_deduplicate_filter/README.rst create mode 100644 partner_deduplicate_filter/__init__.py create mode 100644 partner_deduplicate_filter/__openerp__.py create mode 100644 partner_deduplicate_filter/i18n/es.po create mode 100644 partner_deduplicate_filter/i18n/sl.po create mode 100644 partner_deduplicate_filter/static/description/icon.png create mode 100644 partner_deduplicate_filter/static/description/icon.svg create mode 100644 partner_deduplicate_filter/tests/__init__.py create mode 100644 partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py create mode 100644 partner_deduplicate_filter/wizards/__init__.py create mode 100644 partner_deduplicate_filter/wizards/partner_merge.py create mode 100644 partner_deduplicate_filter/wizards/partner_merge_view.xml diff --git a/partner_deduplicate_filter/README.rst b/partner_deduplicate_filter/README.rst new file mode 100644 index 000000000..6aa5c85f8 --- /dev/null +++ b/partner_deduplicate_filter/README.rst @@ -0,0 +1,65 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +=========================================== +Exclude some records from the deduplication +=========================================== + +This module extends the possibilities of the contact deduplication allowing +to filter the applicable set according to several criteria. + +For now, only the filter for restricting the deduplication to only companies or +only contacts is implemented. + +Usage +===== + +To use this module, you need to: + +#. Go to *Sales > Tools > Deduplicate Contacts*. +#. Mark "'Is a company?' field selected", "Parent company not set" or + "Parent company set (Contacts)" in the section 'Exclude contacts having'. +#. This criteria will be used for excluding in the deduplication the selected + kind of records. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/111/8.0 + +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. + +Credits +======= + +Images +------ + +* `Funnel `_. +* `Arrow `_. + +Contributors +------------ + +* Pedro M. Baeza + +Maintainer +---------- + +.. 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. diff --git a/partner_deduplicate_filter/__init__.py b/partner_deduplicate_filter/__init__.py new file mode 100644 index 000000000..f8944f05c --- /dev/null +++ b/partner_deduplicate_filter/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import wizards diff --git a/partner_deduplicate_filter/__openerp__.py b/partner_deduplicate_filter/__openerp__.py new file mode 100644 index 000000000..d7c531952 --- /dev/null +++ b/partner_deduplicate_filter/__openerp__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Exclude records from the deduplication", + "version": "8.0.1.0.0", + "category": "Tools", + "website": "https://www.tecnativa.com", + "author": "Tecnativa, " + "Odoo Community Association (OCA)", + "license": "AGPL-3", + "installable": True, + "depends": [ + "crm", + ], + "data": [ + 'wizards/partner_merge_view.xml', + ], +} diff --git a/partner_deduplicate_filter/i18n/es.po b/partner_deduplicate_filter/i18n/es.po new file mode 100644 index 000000000..7ad3becf5 --- /dev/null +++ b/partner_deduplicate_filter/i18n/es.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_deduplicate_filter +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-08-12 19:57+0000\n" +"PO-Revision-Date: 2016-08-12 19:57+0000\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: crm_deduplicate_filter +#: field:base.partner.merge.automatic.wizard,exclude_is_company:0 +msgid "'Is a company?' field selected" +msgstr "El campo '¿Es una compañía?' seleccionado" + +#. module: crm_deduplicate_filter +#: field:base.partner.merge.automatic.wizard,exclude_parent:0 +msgid "Parent company set (Contacts)" +msgstr "La compañía padre establecida (Contactos)" + +#. module: crm_deduplicate_filter +#: field:base.partner.merge.automatic.wizard,exclude_not_parent:0 +msgid "Parent company not set" +msgstr "La compañía padre no establecida" + diff --git a/partner_deduplicate_filter/i18n/sl.po b/partner_deduplicate_filter/i18n/sl.po new file mode 100644 index 000000000..b5e016439 --- /dev/null +++ b/partner_deduplicate_filter/i18n/sl.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_deduplicate_filter +# +# Translators: +# Matjaž Mozetič , 2016 +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-02 14:15+0000\n" +"PO-Revision-Date: 2016-10-21 06:43+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-crm-8-0/language/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: crm_deduplicate_filter +#: field:base.partner.merge.automatic.wizard,exclude_is_company:0 +msgid "'Is a company?' field selected" +msgstr "Polje 'Je pravna oseba' izbrano" + +#. module: crm_deduplicate_filter +#: field:base.partner.merge.automatic.wizard,exclude_not_parent:0 +msgid "Parent company not set" +msgstr "Nadrejena družba ni nastavljena." + +#. module: crm_deduplicate_filter +#: field:base.partner.merge.automatic.wizard,exclude_parent:0 +msgid "Parent company set (Contacts)" +msgstr "Nadrejena družba nastavljena (stiki)" diff --git a/partner_deduplicate_filter/static/description/icon.png b/partner_deduplicate_filter/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..49b724769a98a98c05cd6fbb0e9df437a78c627a GIT binary patch literal 11387 zcmW++1ymI87oDZMW9d{8kd~5e5CjQ9x{(r)l-i|JLb|)9yHilQJ0+H0y5qmU|C}>3 zXXecA%zX3i`|f-9hN*p!$Hk(=0ssJ4Q9(u>v4{S*VxS?my<#Rqh#iWvl%ggEV)4c> z4@DefIx2j2MqEGl-wKjqN%KIQq;QedanW$Fba6NNW&yanyK`87wRJW#akSuY_-2)M zEJ6tY^njv_q^3vukfZ^^jis$th4Pe&V$5r9T~Rbc)qeFV)XH7U^2V5l|IEp` z4xef;4T*dM%`yGxjFJ4Rs+#8mnHKbiOxh%RRB-yR=h5_d`T0AV?1)b64f2FqTlXKI ziYty|+38YaW4fNsD46G58cSEbF8ABD;aa@jHO2rK-Iy6V0muR1gXdr9YS{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%wjyVvH)Lu`RorKO?wPrlZ-j1kZjM~+W<3CUyEq3y=z;k6cOifdJDHcqVEpUm zsHiA)BO^qosr~ZqpiCyzpLuT{zCj4`)C28J7u`{Cdc&aNYu|B7AXyY#JeCGzH qqd^-mt!`AAdN72z=Zl{_gI;Ic#Ha4J4 + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/partner_deduplicate_filter/tests/__init__.py b/partner_deduplicate_filter/tests/__init__.py new file mode 100644 index 000000000..4945339d8 --- /dev/null +++ b/partner_deduplicate_filter/tests/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import test_crm_deduplicate_filter diff --git a/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py b/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py new file mode 100644 index 000000000..b6777fa56 --- /dev/null +++ b/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp.tests import common +from openerp.tools.safe_eval import safe_eval + + +class TestDeduplicateFilter(common.TransactionCase): + def setUp(self): + super(TestDeduplicateFilter, self).setUp() + self.partner_1 = self.env['res.partner'].create({ + 'name': 'Partner 1', + 'email': 'partner1@example.org', + 'is_company': True, + 'parent_id': False, + }) + self.partner_1.copy() + self.partner_2 = self.env['res.partner'].create({ + 'name': 'Partner 2', + 'email': 'partner2@example.org', + 'is_company': False, + 'parent_id': self.partner_1.id, + }) + self.partner_2.copy() + self.partner_3 = self.env['res.partner'].create({ + 'name': 'Partner 3', + 'email': 'partner3@example.org', + 'is_company': False, + 'parent_id': False, + }) + self.partner_3.copy() + self.wizard = self.env['base.partner.merge.automatic.wizard'].create({ + 'group_by_email': True, + }) + + def test_deduplicate_exclude_is_company(self): + self.wizard.exclude_is_company = True + self.wizard.start_process_cb() + matched_founds = 0 + for line in self.wizard.line_ids: + match_ids = safe_eval(line.aggr_ids) + if self.partner_1.id in match_ids: + self.assertTrue(False, 'Partner with is company not excluded') + if self.partner_2.id in match_ids: + matched_founds += 1 + if self.partner_3.id in match_ids: + matched_founds += 1 + self.assertEqual(matched_founds, 2) + + def test_deduplicate_exclude_not_parent(self): + self.wizard.exclude_not_parent = True + self.wizard.start_process_cb() + matched_founds = 0 + for line in self.wizard.line_ids: + match_ids = safe_eval(line.aggr_ids) + if self.partner_1.id in match_ids: + self.assertTrue(False, 'Partner without parent not excluded') + if self.partner_3.id in match_ids: + self.assertTrue(False, 'Partner without parent not excluded') + if self.partner_2.id in match_ids: + matched_founds += 1 + self.assertEqual(matched_founds, 1) + + def test_deduplicate_exclude_parent(self): + self.wizard.exclude_parent = True + self.wizard.start_process_cb() + matched_founds = 0 + for line in self.wizard.line_ids: + match_ids = safe_eval(line.aggr_ids) + if self.partner_2.id in match_ids: + self.assertTrue(False, 'Partner with parent not excluded') + if self.partner_1.id in match_ids: + matched_founds += 1 + if self.partner_3.id in match_ids: + matched_founds += 1 + self.assertEqual(matched_founds, 2) diff --git a/partner_deduplicate_filter/wizards/__init__.py b/partner_deduplicate_filter/wizards/__init__.py new file mode 100644 index 000000000..c93eadfed --- /dev/null +++ b/partner_deduplicate_filter/wizards/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import partner_merge diff --git a/partner_deduplicate_filter/wizards/partner_merge.py b/partner_deduplicate_filter/wizards/partner_merge.py new file mode 100644 index 000000000..26381b791 --- /dev/null +++ b/partner_deduplicate_filter/wizards/partner_merge.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp import api, fields, models + + +class BasePartnerMergeAutomaticWizard(models.TransientModel): + _inherit = "base.partner.merge.automatic.wizard" + + exclude_is_company = fields.Boolean("'Is a company?' field selected") + exclude_not_parent = fields.Boolean("Parent company not set") + exclude_parent = fields.Boolean("Parent company set (Contacts)") + + @api.multi + def _process_query(self, query): + if any([self.exclude_is_company, self.exclude_not_parent, + self.exclude_parent]): + filters = [] + if self.exclude_is_company: + filters.append("is_company = False") + if self.exclude_not_parent: + filters.append("parent_id IS NOT NULL") + if self.exclude_parent: + filters.append("parent_id IS NULL") + index_where = query.find('WHERE') + index_group_by = query.find('GROUP BY') + subquery = "%s" % ' AND '.join(filters) + if index_where > 0: + subquery = "AND (%s) " % subquery + else: # pragma: no cover + subquery = "WHERE %s " % subquery + query = query[:index_group_by] + subquery + query[index_group_by:] + return super(BasePartnerMergeAutomaticWizard, self)._process_query( + query) diff --git a/partner_deduplicate_filter/wizards/partner_merge_view.xml b/partner_deduplicate_filter/wizards/partner_merge_view.xml new file mode 100644 index 000000000..26d0b5465 --- /dev/null +++ b/partner_deduplicate_filter/wizards/partner_merge_view.xml @@ -0,0 +1,21 @@ + + + + + + + + base.partner.merge.automatic.wizard + + + + + + + + + + + + From d7f3466760149c6b7496bb2c843c480125964d3b Mon Sep 17 00:00:00 2001 From: cubells Date: Mon, 9 Jan 2017 22:47:03 +0100 Subject: [PATCH 02/10] crm_deduplicate_filter module - Updated README - updated views - Fix dependence --- partner_deduplicate_filter/README.rst | 3 +- partner_deduplicate_filter/__openerp__.py | 4 +- partner_deduplicate_filter/i18n/de.po | 39 +++++++++++++++++++ partner_deduplicate_filter/i18n/es.po | 35 ++++++++++------- partner_deduplicate_filter/i18n/sk.po | 39 +++++++++++++++++++ partner_deduplicate_filter/i18n/sl.po | 23 ++++++----- partner_deduplicate_filter/i18n/tr.po | 39 +++++++++++++++++++ .../wizards/__init__.py | 2 +- .../wizards/partner_merge_view.xml | 7 ++-- 9 files changed, 161 insertions(+), 30 deletions(-) create mode 100644 partner_deduplicate_filter/i18n/de.po create mode 100644 partner_deduplicate_filter/i18n/sk.po create mode 100644 partner_deduplicate_filter/i18n/tr.po diff --git a/partner_deduplicate_filter/README.rst b/partner_deduplicate_filter/README.rst index 6aa5c85f8..4e60643f0 100644 --- a/partner_deduplicate_filter/README.rst +++ b/partner_deduplicate_filter/README.rst @@ -25,7 +25,7 @@ To use this module, you need to: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/111/8.0 + :target: https://runbot.odoo-community.org/runbot/111/9.0 Bug Tracker =========== @@ -48,6 +48,7 @@ Contributors ------------ * Pedro M. Baeza +* Vicent Cubells Maintainer ---------- diff --git a/partner_deduplicate_filter/__openerp__.py b/partner_deduplicate_filter/__openerp__.py index d7c531952..b6eea5b8f 100644 --- a/partner_deduplicate_filter/__openerp__.py +++ b/partner_deduplicate_filter/__openerp__.py @@ -1,10 +1,11 @@ # -*- coding: utf-8 -*- # Copyright 2016 Pedro M. Baeza +# Copyright 2017 Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Exclude records from the deduplication", - "version": "8.0.1.0.0", + "version": "9.0.1.0.0", "category": "Tools", "website": "https://www.tecnativa.com", "author": "Tecnativa, " @@ -13,6 +14,7 @@ "installable": True, "depends": [ "crm", + "crm_deduplicate_acl", ], "data": [ 'wizards/partner_merge_view.xml', diff --git a/partner_deduplicate_filter/i18n/de.po b/partner_deduplicate_filter/i18n/de.po new file mode 100644 index 000000000..8b09af55a --- /dev/null +++ b/partner_deduplicate_filter/i18n/de.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_deduplicate_filter +# +# Translators: +# Rudolf Schnapka , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-28 02:27+0000\n" +"PO-Revision-Date: 2017-03-28 02:27+0000\n" +"Last-Translator: Rudolf Schnapka , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +msgid "'Is a company?' field selected" +msgstr "'Ist Unternehmen'-Feld ausgewählt" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +msgid "Parent company not set" +msgstr "Übergeordnetes Unternehmen nicht gepflegt" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +msgid "Parent company set (Contacts)" +msgstr "Übergeordnetes Unternehmen gesetzt (Kontakte)" + +#. module: crm_deduplicate_filter +#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "base.partner.merge.automatic.wizard" +msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/es.po b/partner_deduplicate_filter/i18n/es.po index 7ad3becf5..49b32b1ec 100644 --- a/partner_deduplicate_filter/i18n/es.po +++ b/partner_deduplicate_filter/i18n/es.po @@ -1,32 +1,39 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_deduplicate_filter -# +# * crm_deduplicate_filter +# +# Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-08-12 19:57+0000\n" -"PO-Revision-Date: 2016-08-12 19:57+0000\n" -"Last-Translator: <>\n" -"Language-Team: \n" +"POT-Creation-Date: 2017-03-28 02:27+0000\n" +"PO-Revision-Date: 2017-03-28 02:27+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_deduplicate_filter -#: field:base.partner.merge.automatic.wizard,exclude_is_company:0 +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company msgid "'Is a company?' field selected" msgstr "El campo '¿Es una compañía?' seleccionado" #. module: crm_deduplicate_filter -#: field:base.partner.merge.automatic.wizard,exclude_parent:0 +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +msgid "Parent company not set" +msgstr "La compañía padre no establecida" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent msgid "Parent company set (Contacts)" msgstr "La compañía padre establecida (Contactos)" #. module: crm_deduplicate_filter -#: field:base.partner.merge.automatic.wizard,exclude_not_parent:0 -msgid "Parent company not set" -msgstr "La compañía padre no establecida" - +#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "base.partner.merge.automatic.wizard" +msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/sk.po b/partner_deduplicate_filter/i18n/sk.po new file mode 100644 index 000000000..ac85d84d0 --- /dev/null +++ b/partner_deduplicate_filter/i18n/sk.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_deduplicate_filter +# +# Translators: +# gebri , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-28 02:27+0000\n" +"PO-Revision-Date: 2017-03-28 02:27+0000\n" +"Last-Translator: gebri , 2017\n" +"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sk\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +msgid "'Is a company?' field selected" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +msgid "Parent company not set" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +msgid "Parent company set (Contacts)" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "base.partner.merge.automatic.wizard" +msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/sl.po b/partner_deduplicate_filter/i18n/sl.po index b5e016439..da2787c18 100644 --- a/partner_deduplicate_filter/i18n/sl.po +++ b/partner_deduplicate_filter/i18n/sl.po @@ -3,15 +3,15 @@ # * crm_deduplicate_filter # # Translators: -# Matjaž Mozetič , 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-11-02 14:15+0000\n" -"PO-Revision-Date: 2016-10-21 06:43+0000\n" -"Last-Translator: Matjaž Mozetič \n" -"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-crm-8-0/language/sl/)\n" +"POT-Creation-Date: 2017-03-28 02:27+0000\n" +"PO-Revision-Date: 2017-03-28 02:27+0000\n" +"Last-Translator: OCA Transbot , 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" @@ -19,16 +19,21 @@ msgstr "" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" #. module: crm_deduplicate_filter -#: field:base.partner.merge.automatic.wizard,exclude_is_company:0 +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company msgid "'Is a company?' field selected" msgstr "Polje 'Je pravna oseba' izbrano" #. module: crm_deduplicate_filter -#: field:base.partner.merge.automatic.wizard,exclude_not_parent:0 +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent msgid "Parent company not set" msgstr "Nadrejena družba ni nastavljena." #. module: crm_deduplicate_filter -#: field:base.partner.merge.automatic.wizard,exclude_parent:0 +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent msgid "Parent company set (Contacts)" msgstr "Nadrejena družba nastavljena (stiki)" + +#. module: crm_deduplicate_filter +#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "base.partner.merge.automatic.wizard" +msgstr "" diff --git a/partner_deduplicate_filter/i18n/tr.po b/partner_deduplicate_filter/i18n/tr.po new file mode 100644 index 000000000..d4617c46e --- /dev/null +++ b/partner_deduplicate_filter/i18n/tr.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_deduplicate_filter +# +# Translators: +# Ahmet Altinisik , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-28 02:27+0000\n" +"PO-Revision-Date: 2017-03-28 02:27+0000\n" +"Last-Translator: Ahmet Altinisik , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +msgid "'Is a company?' field selected" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +msgid "Parent company not set" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +msgid "Parent company set (Contacts)" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "base.partner.merge.automatic.wizard" +msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/wizards/__init__.py b/partner_deduplicate_filter/wizards/__init__.py index c93eadfed..cc7f67425 100644 --- a/partner_deduplicate_filter/wizards/__init__.py +++ b/partner_deduplicate_filter/wizards/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import partner_merge diff --git a/partner_deduplicate_filter/wizards/partner_merge_view.xml b/partner_deduplicate_filter/wizards/partner_merge_view.xml index 26d0b5465..d70cd134b 100644 --- a/partner_deduplicate_filter/wizards/partner_merge_view.xml +++ b/partner_deduplicate_filter/wizards/partner_merge_view.xml @@ -1,9 +1,9 @@ - - + base.partner.merge.automatic.wizard @@ -17,5 +17,4 @@ - - + From ee43a273f70981864ee30957cd95107a4bf95a4f Mon Sep 17 00:00:00 2001 From: "Luis M. Ontalba" Date: Thu, 8 Jun 2017 14:50:10 +0200 Subject: [PATCH 03/10] [MIG] crm_deduplicate_filter: Migrated to 10.0 --- partner_deduplicate_filter/README.rst | 6 ++- .../{__openerp__.py => __manifest__.py} | 2 +- partner_deduplicate_filter/i18n/hr.po | 39 +++++++++++++++++++ partner_deduplicate_filter/i18n/nl_NL.po | 39 +++++++++++++++++++ partner_deduplicate_filter/i18n/tr.po | 15 +++---- .../tests/test_crm_deduplicate_filter.py | 10 ++--- .../wizards/__init__.py | 1 - .../wizards/partner_merge.py | 2 +- 8 files changed, 97 insertions(+), 17 deletions(-) rename partner_deduplicate_filter/{__openerp__.py => __manifest__.py} (95%) create mode 100644 partner_deduplicate_filter/i18n/hr.po create mode 100644 partner_deduplicate_filter/i18n/nl_NL.po diff --git a/partner_deduplicate_filter/README.rst b/partner_deduplicate_filter/README.rst index 4e60643f0..46dd836cf 100644 --- a/partner_deduplicate_filter/README.rst +++ b/partner_deduplicate_filter/README.rst @@ -17,7 +17,7 @@ Usage To use this module, you need to: -#. Go to *Sales > Tools > Deduplicate Contacts*. +#. Go to *CRM/Sales > Tools > Deduplicate Contacts*. #. Mark "'Is a company?' field selected", "Parent company not set" or "Parent company set (Contacts)" in the section 'Exclude contacts having'. #. This criteria will be used for excluding in the deduplication the selected @@ -25,7 +25,7 @@ To use this module, you need to: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/111/9.0 + :target: https://runbot.odoo-community.org/runbot/111/10.0 Bug Tracker =========== @@ -41,6 +41,7 @@ Credits Images ------ +* Odoo Community Association: `Icon `_. * `Funnel `_. * `Arrow `_. @@ -49,6 +50,7 @@ Contributors * Pedro M. Baeza * Vicent Cubells +* Luis M. Ontalba Maintainer ---------- diff --git a/partner_deduplicate_filter/__openerp__.py b/partner_deduplicate_filter/__manifest__.py similarity index 95% rename from partner_deduplicate_filter/__openerp__.py rename to partner_deduplicate_filter/__manifest__.py index b6eea5b8f..99d751aff 100644 --- a/partner_deduplicate_filter/__openerp__.py +++ b/partner_deduplicate_filter/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Exclude records from the deduplication", - "version": "9.0.1.0.0", + "version": "10.0.1.0.0", "category": "Tools", "website": "https://www.tecnativa.com", "author": "Tecnativa, " diff --git a/partner_deduplicate_filter/i18n/hr.po b/partner_deduplicate_filter/i18n/hr.po new file mode 100644 index 000000000..21755ae6c --- /dev/null +++ b/partner_deduplicate_filter/i18n/hr.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_deduplicate_filter +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-08 01:22+0000\n" +"PO-Revision-Date: 2017-07-08 01:22+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\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: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +msgid "'Is a company?' field selected" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +msgid "Parent company not set" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +msgid "Parent company set (Contacts)" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "base.partner.merge.automatic.wizard" +msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/nl_NL.po b/partner_deduplicate_filter/i18n/nl_NL.po new file mode 100644 index 000000000..64bd82fb1 --- /dev/null +++ b/partner_deduplicate_filter/i18n/nl_NL.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_deduplicate_filter +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-09 08:00+0000\n" +"PO-Revision-Date: 2017-06-09 08:00+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl_NL\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +msgid "'Is a company?' field selected" +msgstr "'Is een bedrijf?' veld geselecteerd" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +msgid "Parent company not set" +msgstr "Moederbedrijf niet ingesteld" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +msgid "Parent company set (Contacts)" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "base.partner.merge.automatic.wizard" +msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/tr.po b/partner_deduplicate_filter/i18n/tr.po index d4617c46e..08d2f5c06 100644 --- a/partner_deduplicate_filter/i18n/tr.po +++ b/partner_deduplicate_filter/i18n/tr.po @@ -3,14 +3,15 @@ # * crm_deduplicate_filter # # Translators: -# Ahmet Altinisik , 2017 +# OCA Transbot , 2017 +# Ediz Duman , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-03-28 02:27+0000\n" -"PO-Revision-Date: 2017-03-28 02:27+0000\n" -"Last-Translator: Ahmet Altinisik , 2017\n" +"POT-Creation-Date: 2017-06-10 03:36+0000\n" +"PO-Revision-Date: 2017-06-10 03:36+0000\n" +"Last-Translator: Ediz Duman , 2017\n" "Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -21,12 +22,12 @@ msgstr "" #. module: crm_deduplicate_filter #: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company msgid "'Is a company?' field selected" -msgstr "" +msgstr "' Bu bir şirket mi? ' Alanı seçili ise" #. module: crm_deduplicate_filter #: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent msgid "Parent company not set" -msgstr "" +msgstr "Üst firma Ayarlanmamışsa" #. module: crm_deduplicate_filter #: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent diff --git a/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py b/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py index b6777fa56..3c360d8d6 100644 --- a/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py +++ b/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py @@ -2,8 +2,8 @@ # Copyright 2016 Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp.tests import common -from openerp.tools.safe_eval import safe_eval +from odoo.tests import common +from odoo.tools.safe_eval import safe_eval class TestDeduplicateFilter(common.TransactionCase): @@ -36,7 +36,7 @@ class TestDeduplicateFilter(common.TransactionCase): def test_deduplicate_exclude_is_company(self): self.wizard.exclude_is_company = True - self.wizard.start_process_cb() + self.wizard.action_start_manual_process() matched_founds = 0 for line in self.wizard.line_ids: match_ids = safe_eval(line.aggr_ids) @@ -50,7 +50,7 @@ class TestDeduplicateFilter(common.TransactionCase): def test_deduplicate_exclude_not_parent(self): self.wizard.exclude_not_parent = True - self.wizard.start_process_cb() + self.wizard.action_start_manual_process() matched_founds = 0 for line in self.wizard.line_ids: match_ids = safe_eval(line.aggr_ids) @@ -64,7 +64,7 @@ class TestDeduplicateFilter(common.TransactionCase): def test_deduplicate_exclude_parent(self): self.wizard.exclude_parent = True - self.wizard.start_process_cb() + self.wizard.action_start_manual_process() matched_founds = 0 for line in self.wizard.line_ids: match_ids = safe_eval(line.aggr_ids) diff --git a/partner_deduplicate_filter/wizards/__init__.py b/partner_deduplicate_filter/wizards/__init__.py index cc7f67425..31a70707d 100644 --- a/partner_deduplicate_filter/wizards/__init__.py +++ b/partner_deduplicate_filter/wizards/__init__.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import partner_merge diff --git a/partner_deduplicate_filter/wizards/partner_merge.py b/partner_deduplicate_filter/wizards/partner_merge.py index 26381b791..d07140e99 100644 --- a/partner_deduplicate_filter/wizards/partner_merge.py +++ b/partner_deduplicate_filter/wizards/partner_merge.py @@ -2,7 +2,7 @@ # Copyright 2016 Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import api, fields, models +from odoo import api, fields, models class BasePartnerMergeAutomaticWizard(models.TransientModel): From 949b6681c3d555adac69c37b99238a42f57056e3 Mon Sep 17 00:00:00 2001 From: Ernesto Tejeda Date: Thu, 12 Apr 2018 17:20:04 -0400 Subject: [PATCH 04/10] [MIG] crm_deduplicate_filter: Migration to 11.0 [UPD] Update crm_deduplicate_filter.pot --- partner_deduplicate_filter/README.rst | 2 +- partner_deduplicate_filter/__init__.py | 1 - partner_deduplicate_filter/__manifest__.py | 3 +- .../i18n/crm_deduplicate_filter.pot | 35 +++++++++++++++++++ partner_deduplicate_filter/i18n/de.po | 4 +-- partner_deduplicate_filter/i18n/es.po | 4 +-- partner_deduplicate_filter/i18n/hr.po | 7 ++-- partner_deduplicate_filter/i18n/nl_NL.po | 7 ++-- partner_deduplicate_filter/i18n/sk.po | 4 +-- partner_deduplicate_filter/i18n/sl.po | 7 ++-- partner_deduplicate_filter/i18n/tr.po | 4 +-- partner_deduplicate_filter/tests/__init__.py | 1 - .../tests/test_crm_deduplicate_filter.py | 1 - .../wizards/__init__.py | 1 - .../wizards/partner_merge.py | 1 - 15 files changed, 57 insertions(+), 25 deletions(-) create mode 100644 partner_deduplicate_filter/i18n/crm_deduplicate_filter.pot diff --git a/partner_deduplicate_filter/README.rst b/partner_deduplicate_filter/README.rst index 46dd836cf..e42755643 100644 --- a/partner_deduplicate_filter/README.rst +++ b/partner_deduplicate_filter/README.rst @@ -25,7 +25,7 @@ To use this module, you need to: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/111/10.0 + :target: https://runbot.odoo-community.org/runbot/111/11.0 Bug Tracker =========== diff --git a/partner_deduplicate_filter/__init__.py b/partner_deduplicate_filter/__init__.py index f8944f05c..2d2a05ce9 100644 --- a/partner_deduplicate_filter/__init__.py +++ b/partner_deduplicate_filter/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import wizards diff --git a/partner_deduplicate_filter/__manifest__.py b/partner_deduplicate_filter/__manifest__.py index 99d751aff..8ec98614c 100644 --- a/partner_deduplicate_filter/__manifest__.py +++ b/partner_deduplicate_filter/__manifest__.py @@ -1,11 +1,10 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Pedro M. Baeza # Copyright 2017 Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Exclude records from the deduplication", - "version": "10.0.1.0.0", + "version": "11.0.1.0.0", "category": "Tools", "website": "https://www.tecnativa.com", "author": "Tecnativa, " diff --git a/partner_deduplicate_filter/i18n/crm_deduplicate_filter.pot b/partner_deduplicate_filter/i18n/crm_deduplicate_filter.pot new file mode 100644 index 000000000..81bb57d36 --- /dev/null +++ b/partner_deduplicate_filter/i18n/crm_deduplicate_filter.pot @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_deduplicate_filter +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.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: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +msgid "'Is a company?' field selected" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +msgid "Parent company not set" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +msgid "Parent company set (Contacts)" +msgstr "" + +#. module: crm_deduplicate_filter +#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "base.partner.merge.automatic.wizard" +msgstr "" + diff --git a/partner_deduplicate_filter/i18n/de.po b/partner_deduplicate_filter/i18n/de.po index 8b09af55a..5a623005e 100644 --- a/partner_deduplicate_filter/i18n/de.po +++ b/partner_deduplicate_filter/i18n/de.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_deduplicate_filter -# +# # Translators: # Rudolf Schnapka , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-03-28 02:27+0000\n" "Last-Translator: Rudolf Schnapka , 2017\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" -"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_deduplicate_filter diff --git a/partner_deduplicate_filter/i18n/es.po b/partner_deduplicate_filter/i18n/es.po index 49b32b1ec..283e4e666 100644 --- a/partner_deduplicate_filter/i18n/es.po +++ b/partner_deduplicate_filter/i18n/es.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_deduplicate_filter -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-03-28 02:27+0000\n" "Last-Translator: OCA Transbot , 2017\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_deduplicate_filter diff --git a/partner_deduplicate_filter/i18n/hr.po b/partner_deduplicate_filter/i18n/hr.po index 21755ae6c..1a78c4771 100644 --- a/partner_deduplicate_filter/i18n/hr.po +++ b/partner_deduplicate_filter/i18n/hr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_deduplicate_filter -# +# # Translators: # Bole , 2017 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2017-07-08 01:22+0000\n" "Last-Translator: Bole , 2017\n" "Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: hr\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" +"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: crm_deduplicate_filter #: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company diff --git a/partner_deduplicate_filter/i18n/nl_NL.po b/partner_deduplicate_filter/i18n/nl_NL.po index 64bd82fb1..07b983576 100644 --- a/partner_deduplicate_filter/i18n/nl_NL.po +++ b/partner_deduplicate_filter/i18n/nl_NL.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_deduplicate_filter -# +# # Translators: # Peter Hageman , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-06-09 08:00+0000\n" "PO-Revision-Date: 2017-06-09 08:00+0000\n" "Last-Translator: Peter Hageman , 2017\n" -"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: nl_NL\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_deduplicate_filter diff --git a/partner_deduplicate_filter/i18n/sk.po b/partner_deduplicate_filter/i18n/sk.po index ac85d84d0..5b16418f4 100644 --- a/partner_deduplicate_filter/i18n/sk.po +++ b/partner_deduplicate_filter/i18n/sk.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_deduplicate_filter -# +# # Translators: # gebri , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-03-28 02:27+0000\n" "Last-Translator: gebri , 2017\n" "Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: sk\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #. module: crm_deduplicate_filter diff --git a/partner_deduplicate_filter/i18n/sl.po b/partner_deduplicate_filter/i18n/sl.po index da2787c18..a6ca4d4b0 100644 --- a/partner_deduplicate_filter/i18n/sl.po +++ b/partner_deduplicate_filter/i18n/sl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_deduplicate_filter -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2017-03-28 02:27+0000\n" "Last-Translator: OCA Transbot , 2017\n" "Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: 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" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" #. module: crm_deduplicate_filter #: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company diff --git a/partner_deduplicate_filter/i18n/tr.po b/partner_deduplicate_filter/i18n/tr.po index 08d2f5c06..062e89b4c 100644 --- a/partner_deduplicate_filter/i18n/tr.po +++ b/partner_deduplicate_filter/i18n/tr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_deduplicate_filter -# +# # Translators: # OCA Transbot , 2017 # Ediz Duman , 2017 @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: 2017-06-10 03:36+0000\n" "Last-Translator: Ediz Duman , 2017\n" "Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: tr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_deduplicate_filter diff --git a/partner_deduplicate_filter/tests/__init__.py b/partner_deduplicate_filter/tests/__init__.py index 4945339d8..5dc94632b 100644 --- a/partner_deduplicate_filter/tests/__init__.py +++ b/partner_deduplicate_filter/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import test_crm_deduplicate_filter diff --git a/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py b/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py index 3c360d8d6..bf9d2dd8e 100644 --- a/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py +++ b/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/partner_deduplicate_filter/wizards/__init__.py b/partner_deduplicate_filter/wizards/__init__.py index 31a70707d..fa92260c9 100644 --- a/partner_deduplicate_filter/wizards/__init__.py +++ b/partner_deduplicate_filter/wizards/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import partner_merge diff --git a/partner_deduplicate_filter/wizards/partner_merge.py b/partner_deduplicate_filter/wizards/partner_merge.py index d07140e99..beb1285fa 100644 --- a/partner_deduplicate_filter/wizards/partner_merge.py +++ b/partner_deduplicate_filter/wizards/partner_merge.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). From 024cae480bb52878c3a14fb544ed9fc2c69a1a60 Mon Sep 17 00:00:00 2001 From: Victor Martin Date: Mon, 25 Mar 2019 14:55:56 +0100 Subject: [PATCH 05/10] [MIG] partner_deduplicate_filter: Migration to 12.0 [UPD] Update partner_deduplicate_filter.pot [UPD] README.rst --- partner_deduplicate_filter/README.rst | 75 +-- partner_deduplicate_filter/__manifest__.py | 8 +- .../i18n/crm_deduplicate_filter.pot | 18 +- partner_deduplicate_filter/i18n/de.po | 25 +- partner_deduplicate_filter/i18n/es.po | 25 +- partner_deduplicate_filter/i18n/hr.po | 25 +- partner_deduplicate_filter/i18n/nl_NL.po | 25 +- .../i18n/partner_deduplicate_filter.pot | 35 ++ partner_deduplicate_filter/i18n/sk.po | 25 +- partner_deduplicate_filter/i18n/sl.po | 24 +- partner_deduplicate_filter/i18n/tr.po | 25 +- .../readme/CONTRIBUTORS.rst | 4 + .../readme/DESCRIPTION.rst | 5 + partner_deduplicate_filter/readme/USAGE.rst | 7 + .../static/description/index.html | 437 ++++++++++++++++++ partner_deduplicate_filter/tests/__init__.py | 2 +- ....py => test_partner_deduplicate_filter.py} | 0 .../wizards/partner_merge_view.xml | 3 +- 18 files changed, 649 insertions(+), 119 deletions(-) create mode 100644 partner_deduplicate_filter/i18n/partner_deduplicate_filter.pot create mode 100644 partner_deduplicate_filter/readme/CONTRIBUTORS.rst create mode 100644 partner_deduplicate_filter/readme/DESCRIPTION.rst create mode 100644 partner_deduplicate_filter/readme/USAGE.rst create mode 100644 partner_deduplicate_filter/static/description/index.html rename partner_deduplicate_filter/tests/{test_crm_deduplicate_filter.py => test_partner_deduplicate_filter.py} (100%) diff --git a/partner_deduplicate_filter/README.rst b/partner_deduplicate_filter/README.rst index e42755643..80a21c595 100644 --- a/partner_deduplicate_filter/README.rst +++ b/partner_deduplicate_filter/README.rst @@ -1,10 +1,29 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - -=========================================== -Exclude some records from the deduplication -=========================================== +====================================== +Exclude records from the deduplication +====================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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_deduplicate_filter + :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_deduplicate_filter + :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| This module extends the possibilities of the contact deduplication allowing to filter the applicable set according to several criteria. @@ -12,6 +31,11 @@ to filter the applicable set according to several criteria. For now, only the filter for restricting the deduplication to only companies or only contacts is implemented. +**Table of contents** + +.. contents:: + :local: + Usage ===== @@ -23,46 +47,45 @@ To use this module, you need to: #. This criteria will be used for excluding in the deduplication the selected kind of records. -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/111/11.0 - 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. +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 `_. -* `Funnel `_. -* `Arrow `_. +* Tecnativa Contributors ------------- +~~~~~~~~~~~~ * Pedro M. Baeza * Vicent Cubells * Luis M. Ontalba +* Victor M.M. Torres -Maintainer ----------- +Maintainers +~~~~~~~~~~~ + +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_deduplicate_filter/__manifest__.py b/partner_deduplicate_filter/__manifest__.py index 8ec98614c..a4d455b2e 100644 --- a/partner_deduplicate_filter/__manifest__.py +++ b/partner_deduplicate_filter/__manifest__.py @@ -1,19 +1,19 @@ # Copyright 2016 Pedro M. Baeza # Copyright 2017 Vicent Cubells +# Copyright 2019 Victor M.M Torres # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Exclude records from the deduplication", - "version": "11.0.1.0.0", + "version": "12.0.1.0.0", "category": "Tools", - "website": "https://www.tecnativa.com", + "website": "https://github.com/OCA/partner-contact", "author": "Tecnativa, " "Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, "depends": [ - "crm", - "crm_deduplicate_acl", + "partner_deduplicate_acl", ], "data": [ 'wizards/partner_merge_view.xml', diff --git a/partner_deduplicate_filter/i18n/crm_deduplicate_filter.pot b/partner_deduplicate_filter/i18n/crm_deduplicate_filter.pot index 81bb57d36..a93b58c2d 100644 --- a/partner_deduplicate_filter/i18n/crm_deduplicate_filter.pot +++ b/partner_deduplicate_filter/i18n/crm_deduplicate_filter.pot @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_deduplicate_filter +# * partner_deduplicate_filter # msgid "" msgstr "" @@ -13,23 +13,23 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company msgid "'Is a company?' field selected" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent msgid "Parent company not set" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent msgid "Parent company set (Contacts)" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_deduplicate_filter.model_base_partner_merge_automatic_wizard msgid "base.partner.merge.automatic.wizard" msgstr "" diff --git a/partner_deduplicate_filter/i18n/de.po b/partner_deduplicate_filter/i18n/de.po index 5a623005e..3570eb35f 100644 --- a/partner_deduplicate_filter/i18n/de.po +++ b/partner_deduplicate_filter/i18n/de.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_deduplicate_filter +# * partner_deduplicate_filter # # Translators: # Rudolf Schnapka , 2017 @@ -18,22 +18,25 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_is_company msgid "'Is a company?' field selected" msgstr "'Ist Unternehmen'-Feld ausgewählt" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "Merge Partner Wizard" +msgstr "" + +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_not_parent msgid "Parent company not set" msgstr "Übergeordnetes Unternehmen nicht gepflegt" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "Übergeordnetes Unternehmen gesetzt (Kontakte)" -#. module: crm_deduplicate_filter -#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard -msgid "base.partner.merge.automatic.wizard" -msgstr "base.partner.merge.automatic.wizard" +#~ msgid "base.partner.merge.automatic.wizard" +#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/es.po b/partner_deduplicate_filter/i18n/es.po index 283e4e666..4b0a5dbb7 100644 --- a/partner_deduplicate_filter/i18n/es.po +++ b/partner_deduplicate_filter/i18n/es.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_deduplicate_filter +# * partner_deduplicate_filter # # Translators: # OCA Transbot , 2017 @@ -18,22 +18,25 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_is_company msgid "'Is a company?' field selected" msgstr "El campo '¿Es una compañía?' seleccionado" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "Merge Partner Wizard" +msgstr "" + +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_not_parent msgid "Parent company not set" msgstr "La compañía padre no establecida" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "La compañía padre establecida (Contactos)" -#. module: crm_deduplicate_filter -#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard -msgid "base.partner.merge.automatic.wizard" -msgstr "base.partner.merge.automatic.wizard" +#~ msgid "base.partner.merge.automatic.wizard" +#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/hr.po b/partner_deduplicate_filter/i18n/hr.po index 1a78c4771..c38847537 100644 --- a/partner_deduplicate_filter/i18n/hr.po +++ b/partner_deduplicate_filter/i18n/hr.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_deduplicate_filter +# * partner_deduplicate_filter # # Translators: # Bole , 2017 @@ -19,22 +19,25 @@ msgstr "" "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: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_is_company msgid "'Is a company?' field selected" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "Merge Partner Wizard" +msgstr "" + +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_not_parent msgid "Parent company not set" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard -msgid "base.partner.merge.automatic.wizard" -msgstr "base.partner.merge.automatic.wizard" +#~ msgid "base.partner.merge.automatic.wizard" +#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/nl_NL.po b/partner_deduplicate_filter/i18n/nl_NL.po index 07b983576..392a94976 100644 --- a/partner_deduplicate_filter/i18n/nl_NL.po +++ b/partner_deduplicate_filter/i18n/nl_NL.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_deduplicate_filter +# * partner_deduplicate_filter # # Translators: # Peter Hageman , 2017 @@ -19,22 +19,25 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_is_company msgid "'Is a company?' field selected" msgstr "'Is een bedrijf?' veld geselecteerd" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "Merge Partner Wizard" +msgstr "" + +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_not_parent msgid "Parent company not set" msgstr "Moederbedrijf niet ingesteld" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard -msgid "base.partner.merge.automatic.wizard" -msgstr "base.partner.merge.automatic.wizard" +#~ msgid "base.partner.merge.automatic.wizard" +#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/partner_deduplicate_filter.pot b/partner_deduplicate_filter/i18n/partner_deduplicate_filter.pot new file mode 100644 index 000000000..e66935768 --- /dev/null +++ b/partner_deduplicate_filter/i18n/partner_deduplicate_filter.pot @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_deduplicate_filter +# +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: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_is_company +msgid "'Is a company?' field selected" +msgstr "" + +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "Merge Partner Wizard" +msgstr "" + +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_not_parent +msgid "Parent company not set" +msgstr "" + +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent +msgid "Parent company set (Contacts)" +msgstr "" + diff --git a/partner_deduplicate_filter/i18n/sk.po b/partner_deduplicate_filter/i18n/sk.po index 5b16418f4..26a344d6d 100644 --- a/partner_deduplicate_filter/i18n/sk.po +++ b/partner_deduplicate_filter/i18n/sk.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_deduplicate_filter +# * partner_deduplicate_filter # # Translators: # gebri , 2017 @@ -18,22 +18,25 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_is_company msgid "'Is a company?' field selected" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "Merge Partner Wizard" +msgstr "" + +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_not_parent msgid "Parent company not set" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard -msgid "base.partner.merge.automatic.wizard" -msgstr "base.partner.merge.automatic.wizard" +#~ msgid "base.partner.merge.automatic.wizard" +#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/sl.po b/partner_deduplicate_filter/i18n/sl.po index a6ca4d4b0..d43033e86 100644 --- a/partner_deduplicate_filter/i18n/sl.po +++ b/partner_deduplicate_filter/i18n/sl.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_deduplicate_filter +# * partner_deduplicate_filter # # Translators: # OCA Transbot , 2017 @@ -19,22 +19,22 @@ msgstr "" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" "%100==4 ? 2 : 3);\n" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_is_company msgid "'Is a company?' field selected" msgstr "Polje 'Je pravna oseba' izbrano" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "Merge Partner Wizard" +msgstr "" + +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_not_parent msgid "Parent company not set" msgstr "Nadrejena družba ni nastavljena." -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "Nadrejena družba nastavljena (stiki)" - -#. module: crm_deduplicate_filter -#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard -msgid "base.partner.merge.automatic.wizard" -msgstr "" diff --git a/partner_deduplicate_filter/i18n/tr.po b/partner_deduplicate_filter/i18n/tr.po index 062e89b4c..6491b913d 100644 --- a/partner_deduplicate_filter/i18n/tr.po +++ b/partner_deduplicate_filter/i18n/tr.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_deduplicate_filter +# * partner_deduplicate_filter # # Translators: # OCA Transbot , 2017 @@ -19,22 +19,25 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_is_company +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_is_company msgid "'Is a company?' field selected" msgstr "' Bu bir şirket mi? ' Alanı seçili ise" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_not_parent +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_deduplicate_filter.model_base_partner_merge_automatic_wizard +msgid "Merge Partner Wizard" +msgstr "" + +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_not_parent msgid "Parent company not set" msgstr "Üst firma Ayarlanmamışsa" -#. module: crm_deduplicate_filter -#: model:ir.model.fields,field_description:crm_deduplicate_filter.field_base_partner_merge_automatic_wizard_exclude_parent +#. module: partner_deduplicate_filter +#: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "" -#. module: crm_deduplicate_filter -#: model:ir.model,name:crm_deduplicate_filter.model_base_partner_merge_automatic_wizard -msgid "base.partner.merge.automatic.wizard" -msgstr "base.partner.merge.automatic.wizard" +#~ msgid "base.partner.merge.automatic.wizard" +#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/readme/CONTRIBUTORS.rst b/partner_deduplicate_filter/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..2b4f7c7a9 --- /dev/null +++ b/partner_deduplicate_filter/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Pedro M. Baeza +* Vicent Cubells +* Luis M. Ontalba +* Victor M.M. Torres diff --git a/partner_deduplicate_filter/readme/DESCRIPTION.rst b/partner_deduplicate_filter/readme/DESCRIPTION.rst new file mode 100644 index 000000000..5264f9b5a --- /dev/null +++ b/partner_deduplicate_filter/readme/DESCRIPTION.rst @@ -0,0 +1,5 @@ +This module extends the possibilities of the contact deduplication allowing +to filter the applicable set according to several criteria. + +For now, only the filter for restricting the deduplication to only companies or +only contacts is implemented. diff --git a/partner_deduplicate_filter/readme/USAGE.rst b/partner_deduplicate_filter/readme/USAGE.rst new file mode 100644 index 000000000..3e9f84b9c --- /dev/null +++ b/partner_deduplicate_filter/readme/USAGE.rst @@ -0,0 +1,7 @@ +To use this module, you need to: + +#. Go to *CRM/Sales > Tools > Deduplicate Contacts*. +#. Mark "'Is a company?' field selected", "Parent company not set" or + "Parent company set (Contacts)" in the section 'Exclude contacts having'. +#. This criteria will be used for excluding in the deduplication the selected + kind of records. diff --git a/partner_deduplicate_filter/static/description/index.html b/partner_deduplicate_filter/static/description/index.html new file mode 100644 index 000000000..729b87df1 --- /dev/null +++ b/partner_deduplicate_filter/static/description/index.html @@ -0,0 +1,437 @@ + + + + + + +Exclude records from the deduplication + + + +
+

Exclude records from the deduplication

+ + +

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

+

This module extends the possibilities of the contact deduplication allowing +to filter the applicable set according to several criteria.

+

For now, only the filter for restricting the deduplication to only companies or +only contacts is implemented.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to CRM/Sales > Tools > Deduplicate Contacts.
  2. +
  3. Mark “‘Is a company?’ field selected”, “Parent company not set” or +“Parent company set (Contacts)” in the section ‘Exclude contacts having’.
  4. +
  5. This criteria will be used for excluding in the deduplication the selected +kind of records.
  6. +
+
+
+

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

+
    +
  • Tecnativa
  • +
+
+
+

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_deduplicate_filter/tests/__init__.py b/partner_deduplicate_filter/tests/__init__.py index 5dc94632b..074c33e2e 100644 --- a/partner_deduplicate_filter/tests/__init__.py +++ b/partner_deduplicate_filter/tests/__init__.py @@ -1,3 +1,3 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from . import test_crm_deduplicate_filter +from . import test_partner_deduplicate_filter diff --git a/partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py b/partner_deduplicate_filter/tests/test_partner_deduplicate_filter.py similarity index 100% rename from partner_deduplicate_filter/tests/test_crm_deduplicate_filter.py rename to partner_deduplicate_filter/tests/test_partner_deduplicate_filter.py diff --git a/partner_deduplicate_filter/wizards/partner_merge_view.xml b/partner_deduplicate_filter/wizards/partner_merge_view.xml index d70cd134b..7d05cfcfb 100644 --- a/partner_deduplicate_filter/wizards/partner_merge_view.xml +++ b/partner_deduplicate_filter/wizards/partner_merge_view.xml @@ -1,13 +1,14 @@ base.partner.merge.automatic.wizard - + From 577e97f06d75a1c713abd0c4e2f0eba739a8a8ed Mon Sep 17 00:00:00 2001 From: Kevin Khao Date: Thu, 28 Nov 2019 00:10:21 +0100 Subject: [PATCH 06/10] [IMP] partner_deduplicate_filter: black, isort --- partner_deduplicate_filter/__manifest__.py | 11 +--- .../tests/test_partner_deduplicate_filter.py | 56 ++++++++++--------- .../wizards/partner_merge.py | 14 ++--- 3 files changed, 40 insertions(+), 41 deletions(-) diff --git a/partner_deduplicate_filter/__manifest__.py b/partner_deduplicate_filter/__manifest__.py index a4d455b2e..39d1dd814 100644 --- a/partner_deduplicate_filter/__manifest__.py +++ b/partner_deduplicate_filter/__manifest__.py @@ -8,14 +8,9 @@ "version": "12.0.1.0.0", "category": "Tools", "website": "https://github.com/OCA/partner-contact", - "author": "Tecnativa, " - "Odoo Community Association (OCA)", + "author": "Tecnativa, " "Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, - "depends": [ - "partner_deduplicate_acl", - ], - "data": [ - 'wizards/partner_merge_view.xml', - ], + "depends": ["partner_deduplicate_acl"], + "data": ["wizards/partner_merge_view.xml"], } diff --git a/partner_deduplicate_filter/tests/test_partner_deduplicate_filter.py b/partner_deduplicate_filter/tests/test_partner_deduplicate_filter.py index bf9d2dd8e..24e556a0c 100644 --- a/partner_deduplicate_filter/tests/test_partner_deduplicate_filter.py +++ b/partner_deduplicate_filter/tests/test_partner_deduplicate_filter.py @@ -8,30 +8,36 @@ from odoo.tools.safe_eval import safe_eval class TestDeduplicateFilter(common.TransactionCase): def setUp(self): super(TestDeduplicateFilter, self).setUp() - self.partner_1 = self.env['res.partner'].create({ - 'name': 'Partner 1', - 'email': 'partner1@example.org', - 'is_company': True, - 'parent_id': False, - }) + self.partner_1 = self.env["res.partner"].create( + { + "name": "Partner 1", + "email": "partner1@example.org", + "is_company": True, + "parent_id": False, + } + ) self.partner_1.copy() - self.partner_2 = self.env['res.partner'].create({ - 'name': 'Partner 2', - 'email': 'partner2@example.org', - 'is_company': False, - 'parent_id': self.partner_1.id, - }) + self.partner_2 = self.env["res.partner"].create( + { + "name": "Partner 2", + "email": "partner2@example.org", + "is_company": False, + "parent_id": self.partner_1.id, + } + ) self.partner_2.copy() - self.partner_3 = self.env['res.partner'].create({ - 'name': 'Partner 3', - 'email': 'partner3@example.org', - 'is_company': False, - 'parent_id': False, - }) + self.partner_3 = self.env["res.partner"].create( + { + "name": "Partner 3", + "email": "partner3@example.org", + "is_company": False, + "parent_id": False, + } + ) self.partner_3.copy() - self.wizard = self.env['base.partner.merge.automatic.wizard'].create({ - 'group_by_email': True, - }) + self.wizard = self.env["base.partner.merge.automatic.wizard"].create( + {"group_by_email": True} + ) def test_deduplicate_exclude_is_company(self): self.wizard.exclude_is_company = True @@ -40,7 +46,7 @@ class TestDeduplicateFilter(common.TransactionCase): for line in self.wizard.line_ids: match_ids = safe_eval(line.aggr_ids) if self.partner_1.id in match_ids: - self.assertTrue(False, 'Partner with is company not excluded') + self.assertTrue(False, "Partner with is company not excluded") if self.partner_2.id in match_ids: matched_founds += 1 if self.partner_3.id in match_ids: @@ -54,9 +60,9 @@ class TestDeduplicateFilter(common.TransactionCase): for line in self.wizard.line_ids: match_ids = safe_eval(line.aggr_ids) if self.partner_1.id in match_ids: - self.assertTrue(False, 'Partner without parent not excluded') + self.assertTrue(False, "Partner without parent not excluded") if self.partner_3.id in match_ids: - self.assertTrue(False, 'Partner without parent not excluded') + self.assertTrue(False, "Partner without parent not excluded") if self.partner_2.id in match_ids: matched_founds += 1 self.assertEqual(matched_founds, 1) @@ -68,7 +74,7 @@ class TestDeduplicateFilter(common.TransactionCase): for line in self.wizard.line_ids: match_ids = safe_eval(line.aggr_ids) if self.partner_2.id in match_ids: - self.assertTrue(False, 'Partner with parent not excluded') + self.assertTrue(False, "Partner with parent not excluded") if self.partner_1.id in match_ids: matched_founds += 1 if self.partner_3.id in match_ids: diff --git a/partner_deduplicate_filter/wizards/partner_merge.py b/partner_deduplicate_filter/wizards/partner_merge.py index beb1285fa..d5fa70a26 100644 --- a/partner_deduplicate_filter/wizards/partner_merge.py +++ b/partner_deduplicate_filter/wizards/partner_merge.py @@ -1,7 +1,7 @@ # Copyright 2016 Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import api, fields, models +from odoo import fields, models class BasePartnerMergeAutomaticWizard(models.TransientModel): @@ -13,8 +13,7 @@ class BasePartnerMergeAutomaticWizard(models.TransientModel): @api.multi def _process_query(self, query): - if any([self.exclude_is_company, self.exclude_not_parent, - self.exclude_parent]): + if any([self.exclude_is_company, self.exclude_not_parent, self.exclude_parent]): filters = [] if self.exclude_is_company: filters.append("is_company = False") @@ -22,13 +21,12 @@ class BasePartnerMergeAutomaticWizard(models.TransientModel): filters.append("parent_id IS NOT NULL") if self.exclude_parent: filters.append("parent_id IS NULL") - index_where = query.find('WHERE') - index_group_by = query.find('GROUP BY') - subquery = "%s" % ' AND '.join(filters) + index_where = query.find("WHERE") + index_group_by = query.find("GROUP BY") + subquery = "%s" % " AND ".join(filters) if index_where > 0: subquery = "AND (%s) " % subquery else: # pragma: no cover subquery = "WHERE %s " % subquery query = query[:index_group_by] + subquery + query[index_group_by:] - return super(BasePartnerMergeAutomaticWizard, self)._process_query( - query) + return super(BasePartnerMergeAutomaticWizard, self)._process_query(query) From b2194beb08a33e3da923a1be9be701af51a52f47 Mon Sep 17 00:00:00 2001 From: Kevin Khao Date: Thu, 28 Nov 2019 00:10:45 +0100 Subject: [PATCH 07/10] [MIG] partner_deduplicate_filter: Migration to 13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: João Marques [UPD] Update partner_deduplicate_filter.pot [UPD] README.rst --- partner_deduplicate_filter/README.rst | 27 ++++++++++++------- partner_deduplicate_filter/__init__.py | 2 +- partner_deduplicate_filter/__manifest__.py | 10 +++---- partner_deduplicate_filter/i18n/de.po | 3 --- partner_deduplicate_filter/i18n/es.po | 3 --- partner_deduplicate_filter/i18n/hr.po | 3 --- partner_deduplicate_filter/i18n/nl_NL.po | 3 --- .../i18n/partner_deduplicate_filter.pot | 7 +++-- partner_deduplicate_filter/i18n/sk.po | 3 --- partner_deduplicate_filter/i18n/tr.po | 3 --- .../readme/CONTRIBUTORS.rst | 13 ++++++--- partner_deduplicate_filter/readme/USAGE.rst | 4 ++- .../static/description/index.html | 21 +++++++++------ partner_deduplicate_filter/tests/__init__.py | 2 +- .../tests/test_partner_deduplicate_filter.py | 4 +-- .../wizards/__init__.py | 2 +- .../wizards/partner_merge.py | 5 ++-- .../wizards/partner_merge_view.xml | 21 +++++++-------- 18 files changed, 66 insertions(+), 70 deletions(-) diff --git a/partner_deduplicate_filter/README.rst b/partner_deduplicate_filter/README.rst index 80a21c595..6324a96ae 100644 --- a/partner_deduplicate_filter/README.rst +++ b/partner_deduplicate_filter/README.rst @@ -14,13 +14,13 @@ Exclude records from the deduplication :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_deduplicate_filter + :target: https://github.com/OCA/partner-contact/tree/13.0/partner_deduplicate_filter :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_deduplicate_filter + :target: https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-partner_deduplicate_filter :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 + :target: https://runbot.odoo-community.org/runbot/134/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -41,7 +41,9 @@ Usage To use this module, you need to: -#. Go to *CRM/Sales > Tools > Deduplicate Contacts*. +#. Follow the instructions in the partner_deduplicate_acl addon to set up the + correct user permissions. +#. Go to *Contacts > Tools > Deduplicate Contacts*. #. Mark "'Is a company?' field selected", "Parent company not set" or "Parent company set (Contacts)" in the section 'Exclude contacts having'. #. This criteria will be used for excluding in the deduplication the selected @@ -53,7 +55,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. @@ -68,10 +70,15 @@ Authors Contributors ~~~~~~~~~~~~ -* Pedro M. Baeza -* Vicent Cubells -* Luis M. Ontalba -* Victor M.M. Torres + +* `Tecnativa `_: + * Pedro M. Baeza + * Vicent Cubells + * Luis M. Ontalba + * Victor M.M. Torres + * João Marques + +* Kevin Khao Maintainers ~~~~~~~~~~~ @@ -86,6 +93,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/partner-contact `_ project on GitHub. +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_deduplicate_filter/__init__.py b/partner_deduplicate_filter/__init__.py index 2d2a05ce9..a18dad97f 100644 --- a/partner_deduplicate_filter/__init__.py +++ b/partner_deduplicate_filter/__init__.py @@ -1,3 +1,3 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import wizards diff --git a/partner_deduplicate_filter/__manifest__.py b/partner_deduplicate_filter/__manifest__.py index 39d1dd814..d0da2e2b4 100644 --- a/partner_deduplicate_filter/__manifest__.py +++ b/partner_deduplicate_filter/__manifest__.py @@ -1,11 +1,11 @@ -# Copyright 2016 Pedro M. Baeza -# Copyright 2017 Vicent Cubells -# Copyright 2019 Victor M.M Torres -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2016 Tecnativa - Pedro M. Baeza +# Copyright 2017 Tecnativa - Vicent Cubells +# Copyright 2019 Tecnativa - Victor M.M Torres +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Exclude records from the deduplication", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "Tools", "website": "https://github.com/OCA/partner-contact", "author": "Tecnativa, " "Odoo Community Association (OCA)", diff --git a/partner_deduplicate_filter/i18n/de.po b/partner_deduplicate_filter/i18n/de.po index 3570eb35f..8bcd1e5c9 100644 --- a/partner_deduplicate_filter/i18n/de.po +++ b/partner_deduplicate_filter/i18n/de.po @@ -37,6 +37,3 @@ msgstr "Übergeordnetes Unternehmen nicht gepflegt" #: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "Übergeordnetes Unternehmen gesetzt (Kontakte)" - -#~ msgid "base.partner.merge.automatic.wizard" -#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/es.po b/partner_deduplicate_filter/i18n/es.po index 4b0a5dbb7..20db28c53 100644 --- a/partner_deduplicate_filter/i18n/es.po +++ b/partner_deduplicate_filter/i18n/es.po @@ -37,6 +37,3 @@ msgstr "La compañía padre no establecida" #: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "La compañía padre establecida (Contactos)" - -#~ msgid "base.partner.merge.automatic.wizard" -#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/hr.po b/partner_deduplicate_filter/i18n/hr.po index c38847537..bc00f8ba2 100644 --- a/partner_deduplicate_filter/i18n/hr.po +++ b/partner_deduplicate_filter/i18n/hr.po @@ -38,6 +38,3 @@ msgstr "" #: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "" - -#~ msgid "base.partner.merge.automatic.wizard" -#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/nl_NL.po b/partner_deduplicate_filter/i18n/nl_NL.po index 392a94976..a1bb05454 100644 --- a/partner_deduplicate_filter/i18n/nl_NL.po +++ b/partner_deduplicate_filter/i18n/nl_NL.po @@ -38,6 +38,3 @@ msgstr "Moederbedrijf niet ingesteld" #: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "" - -#~ msgid "base.partner.merge.automatic.wizard" -#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/partner_deduplicate_filter.pot b/partner_deduplicate_filter/i18n/partner_deduplicate_filter.pot index e66935768..639c90cad 100644 --- a/partner_deduplicate_filter/i18n/partner_deduplicate_filter.pot +++ b/partner_deduplicate_filter/i18n/partner_deduplicate_filter.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * partner_deduplicate_filter +# * partner_deduplicate_filter # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -32,4 +32,3 @@ msgstr "" #: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "" - diff --git a/partner_deduplicate_filter/i18n/sk.po b/partner_deduplicate_filter/i18n/sk.po index 26a344d6d..874012e0b 100644 --- a/partner_deduplicate_filter/i18n/sk.po +++ b/partner_deduplicate_filter/i18n/sk.po @@ -37,6 +37,3 @@ msgstr "" #: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "" - -#~ msgid "base.partner.merge.automatic.wizard" -#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/tr.po b/partner_deduplicate_filter/i18n/tr.po index 6491b913d..e85ac02ac 100644 --- a/partner_deduplicate_filter/i18n/tr.po +++ b/partner_deduplicate_filter/i18n/tr.po @@ -38,6 +38,3 @@ msgstr "Üst firma Ayarlanmamışsa" #: model:ir.model.fields,field_description:partner_deduplicate_filter.field_base_partner_merge_automatic_wizard__exclude_parent msgid "Parent company set (Contacts)" msgstr "" - -#~ msgid "base.partner.merge.automatic.wizard" -#~ msgstr "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/readme/CONTRIBUTORS.rst b/partner_deduplicate_filter/readme/CONTRIBUTORS.rst index 2b4f7c7a9..54f7b2a65 100644 --- a/partner_deduplicate_filter/readme/CONTRIBUTORS.rst +++ b/partner_deduplicate_filter/readme/CONTRIBUTORS.rst @@ -1,4 +1,9 @@ -* Pedro M. Baeza -* Vicent Cubells -* Luis M. Ontalba -* Victor M.M. Torres + +* `Tecnativa `_: + * Pedro M. Baeza + * Vicent Cubells + * Luis M. Ontalba + * Victor M.M. Torres + * João Marques + +* Kevin Khao diff --git a/partner_deduplicate_filter/readme/USAGE.rst b/partner_deduplicate_filter/readme/USAGE.rst index 3e9f84b9c..be7322640 100644 --- a/partner_deduplicate_filter/readme/USAGE.rst +++ b/partner_deduplicate_filter/readme/USAGE.rst @@ -1,6 +1,8 @@ To use this module, you need to: -#. Go to *CRM/Sales > Tools > Deduplicate Contacts*. +#. Follow the instructions in the partner_deduplicate_acl addon to set up the + correct user permissions. +#. Go to *Contacts > Tools > Deduplicate Contacts*. #. Mark "'Is a company?' field selected", "Parent company not set" or "Parent company set (Contacts)" in the section 'Exclude contacts having'. #. This criteria will be used for excluding in the deduplication the selected diff --git a/partner_deduplicate_filter/static/description/index.html b/partner_deduplicate_filter/static/description/index.html index 729b87df1..d357453d7 100644 --- a/partner_deduplicate_filter/static/description/index.html +++ b/partner_deduplicate_filter/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module extends the possibilities of the contact deduplication allowing to filter the applicable set according to several criteria.

For now, only the filter for restricting the deduplication to only companies or @@ -389,7 +389,9 @@ only contacts is implemented.

Usage

To use this module, you need to:

    -
  1. Go to CRM/Sales > Tools > Deduplicate Contacts.
  2. +
  3. Follow the instructions in the partner_deduplicate_acl addon to set up the +correct user permissions.
  4. +
  5. Go to Contacts > Tools > Deduplicate Contacts.
  6. Mark “‘Is a company?’ field selected”, “Parent company not set” or “Parent company set (Contacts)” in the section ‘Exclude contacts having’.
  7. This criteria will be used for excluding in the deduplication the selected @@ -401,7 +403,7 @@ kind of records.
  8. 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.

    @@ -415,10 +417,13 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

    Contributors

    @@ -428,7 +433,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

    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.

    +

    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_deduplicate_filter/tests/__init__.py b/partner_deduplicate_filter/tests/__init__.py index 074c33e2e..62942e752 100644 --- a/partner_deduplicate_filter/tests/__init__.py +++ b/partner_deduplicate_filter/tests/__init__.py @@ -1,3 +1,3 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import test_partner_deduplicate_filter diff --git a/partner_deduplicate_filter/tests/test_partner_deduplicate_filter.py b/partner_deduplicate_filter/tests/test_partner_deduplicate_filter.py index 24e556a0c..72678019f 100644 --- a/partner_deduplicate_filter/tests/test_partner_deduplicate_filter.py +++ b/partner_deduplicate_filter/tests/test_partner_deduplicate_filter.py @@ -1,5 +1,5 @@ -# Copyright 2016 Pedro M. Baeza -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2016 Tecnativa - Pedro M. Baeza +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests import common from odoo.tools.safe_eval import safe_eval diff --git a/partner_deduplicate_filter/wizards/__init__.py b/partner_deduplicate_filter/wizards/__init__.py index fa92260c9..a8a03bc54 100644 --- a/partner_deduplicate_filter/wizards/__init__.py +++ b/partner_deduplicate_filter/wizards/__init__.py @@ -1,3 +1,3 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import partner_merge diff --git a/partner_deduplicate_filter/wizards/partner_merge.py b/partner_deduplicate_filter/wizards/partner_merge.py index d5fa70a26..170d1df32 100644 --- a/partner_deduplicate_filter/wizards/partner_merge.py +++ b/partner_deduplicate_filter/wizards/partner_merge.py @@ -1,5 +1,5 @@ -# Copyright 2016 Pedro M. Baeza -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2016 Tecnativa - Pedro M. Baeza +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models @@ -11,7 +11,6 @@ class BasePartnerMergeAutomaticWizard(models.TransientModel): exclude_not_parent = fields.Boolean("Parent company not set") exclude_parent = fields.Boolean("Parent company set (Contacts)") - @api.multi def _process_query(self, query): if any([self.exclude_is_company, self.exclude_not_parent, self.exclude_parent]): filters = [] diff --git a/partner_deduplicate_filter/wizards/partner_merge_view.xml b/partner_deduplicate_filter/wizards/partner_merge_view.xml index 7d05cfcfb..d4fce2da2 100644 --- a/partner_deduplicate_filter/wizards/partner_merge_view.xml +++ b/partner_deduplicate_filter/wizards/partner_merge_view.xml @@ -1,21 +1,18 @@ - - - + + - base.partner.merge.automatic.wizard - + - - - + + + - From 4f79416c387548942c8365e891be76f7bc075138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Fri, 8 Oct 2021 13:01:47 +0200 Subject: [PATCH 08/10] [IMP] partner_deduplicate_filter: black, isort, prettier --- .../odoo/addons/partner_deduplicate_filter | 1 + setup/partner_deduplicate_filter/setup.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 120000 setup/partner_deduplicate_filter/odoo/addons/partner_deduplicate_filter create mode 100644 setup/partner_deduplicate_filter/setup.py diff --git a/setup/partner_deduplicate_filter/odoo/addons/partner_deduplicate_filter b/setup/partner_deduplicate_filter/odoo/addons/partner_deduplicate_filter new file mode 120000 index 000000000..ceec5f306 --- /dev/null +++ b/setup/partner_deduplicate_filter/odoo/addons/partner_deduplicate_filter @@ -0,0 +1 @@ +../../../../partner_deduplicate_filter \ No newline at end of file diff --git a/setup/partner_deduplicate_filter/setup.py b/setup/partner_deduplicate_filter/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/partner_deduplicate_filter/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From e0776042a1e60f0507d287230c284e4ce0d4df77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Fri, 8 Oct 2021 13:22:34 +0200 Subject: [PATCH 09/10] [MIG] partner_deduplicate_filter: Migration to 14.0 TT30292 --- partner_deduplicate_filter/README.rst | 10 +++++----- partner_deduplicate_filter/__manifest__.py | 4 ++-- .../static/description/index.html | 8 ++++---- .../tests/test_partner_deduplicate_filter.py | 2 +- partner_deduplicate_filter/wizards/partner_merge.py | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/partner_deduplicate_filter/README.rst b/partner_deduplicate_filter/README.rst index 6324a96ae..16f41b1da 100644 --- a/partner_deduplicate_filter/README.rst +++ b/partner_deduplicate_filter/README.rst @@ -14,13 +14,13 @@ Exclude records from the deduplication :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/13.0/partner_deduplicate_filter + :target: https://github.com/OCA/partner-contact/tree/14.0/partner_deduplicate_filter :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-13-0/partner-contact-13-0-partner_deduplicate_filter + :target: https://translation.odoo-community.org/projects/partner-contact-14-0/partner-contact-14-0-partner_deduplicate_filter :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/13.0 + :target: https://runbot.odoo-community.org/runbot/134/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -55,7 +55,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. @@ -93,6 +93,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/partner-contact `_ project on GitHub. +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_deduplicate_filter/__manifest__.py b/partner_deduplicate_filter/__manifest__.py index d0da2e2b4..29ab5bd4b 100644 --- a/partner_deduplicate_filter/__manifest__.py +++ b/partner_deduplicate_filter/__manifest__.py @@ -5,10 +5,10 @@ { "name": "Exclude records from the deduplication", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "category": "Tools", "website": "https://github.com/OCA/partner-contact", - "author": "Tecnativa, " "Odoo Community Association (OCA)", + "author": "Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, "depends": ["partner_deduplicate_acl"], diff --git a/partner_deduplicate_filter/static/description/index.html b/partner_deduplicate_filter/static/description/index.html index d357453d7..1a440c361 100644 --- a/partner_deduplicate_filter/static/description/index.html +++ b/partner_deduplicate_filter/static/description/index.html @@ -3,7 +3,7 @@ - + Exclude records from the deduplication