From 75478a366242f264d8c3cb206b8d91548e03befc Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 12 Aug 2016 22:05:58 +0200 Subject: [PATCH 1/7] 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. --- 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 ++++++ .../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 ++++ 11 files changed, 365 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/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/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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Iku{A_x~{r0>&tR_kB$vkY^d&r55Y!jSFA*!BxGL5P@@Tf6BO zFy~1bF4wK!FMgu^V-g=7TdiXULzEhhYVwe}`udM%W=#JdDy0Iv`@1XxZ+@aMbI5tx z+F{bIfzP8RtLtZo`vaFJzLiemHiuzblip6!-Q9m*%4DWgOW@i)1V1my1l+G}zvR~P z4tqD%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 8d2fe2c574964c5cabe632bfcab9fba33a341de1 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 26 Nov 2016 01:43:03 -0500 Subject: [PATCH 2/7] OCA Transbot updated translations from Transifex --- partner_deduplicate_filter/i18n/sl.po | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 partner_deduplicate_filter/i18n/sl.po 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)" From 9e892f2f8cff2465937432b6262eed573c24be24 Mon Sep 17 00:00:00 2001 From: cubells Date: Mon, 9 Jan 2017 22:47:03 +0100 Subject: [PATCH 3/7] 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 4e426816113ff8aa56b7b6305398f1feac095875 Mon Sep 17 00:00:00 2001 From: "Luis M. Ontalba" Date: Thu, 8 Jun 2017 14:50:10 +0200 Subject: [PATCH 4/7] [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 bcccf958c5f82f54e95d60a852cebbf01077faad Mon Sep 17 00:00:00 2001 From: Ernesto Tejeda Date: Thu, 12 Apr 2018 17:20:04 -0400 Subject: [PATCH 5/7] [MIG] crm_deduplicate_filter: Migration to 11.0 --- partner_deduplicate_filter/README.rst | 2 +- partner_deduplicate_filter/__init__.py | 1 - partner_deduplicate_filter/__manifest__.py | 3 +-- partner_deduplicate_filter/tests/__init__.py | 1 - .../tests/test_crm_deduplicate_filter.py | 1 - partner_deduplicate_filter/wizards/__init__.py | 1 - partner_deduplicate_filter/wizards/partner_merge.py | 1 - 7 files changed, 2 insertions(+), 8 deletions(-) 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/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 f1ab6e737ee93e68203c1698b068ac7aef83ed64 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Wed, 22 Aug 2018 12:00:46 +0000 Subject: [PATCH 6/7] [UPD] Update crm_deduplicate_filter.pot --- .../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 +-- 8 files changed, 55 insertions(+), 17 deletions(-) create mode 100644 partner_deduplicate_filter/i18n/crm_deduplicate_filter.pot 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 From cc58248398d0c696768135012e78a85f46a7aef9 Mon Sep 17 00:00:00 2001 From: Victor Martin Date: Mon, 25 Mar 2019 14:55:56 +0100 Subject: [PATCH 7/7] [MIG] partner_deduplicate_filter: Migration to 12.0 --- partner_deduplicate_filter/README.rst | 75 +-- partner_deduplicate_filter/__manifest__.py | 8 +- .../i18n/crm_deduplicate_filter.pot | 18 +- partner_deduplicate_filter/i18n/de.po | 18 +- partner_deduplicate_filter/i18n/es.po | 18 +- partner_deduplicate_filter/i18n/hr.po | 18 +- partner_deduplicate_filter/i18n/nl_NL.po | 18 +- partner_deduplicate_filter/i18n/sk.po | 18 +- partner_deduplicate_filter/i18n/sl.po | 18 +- partner_deduplicate_filter/i18n/tr.po | 18 +- .../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 +- 17 files changed, 581 insertions(+), 104 deletions(-) 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..3b01487ee 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,22 @@ 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.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 +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_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 283e4e666..a1ee473a1 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,22 @@ 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.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 +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_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/hr.po b/partner_deduplicate_filter/i18n/hr.po index 1a78c4771..fcb307ebb 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,22 @@ 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.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 "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..7e0c7229d 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,22 @@ 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.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 +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_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 index 5b16418f4..2fd7556ca 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,22 @@ 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.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 "base.partner.merge.automatic.wizard" diff --git a/partner_deduplicate_filter/i18n/sl.po b/partner_deduplicate_filter/i18n/sl.po index a6ca4d4b0..ab073d0a3 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.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 +#. 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/tr.po b/partner_deduplicate_filter/i18n/tr.po index 062e89b4c..e2902430a 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,22 @@ 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.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 +#. module: partner_deduplicate_filter +#: model:ir.model,name:partner_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/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..bd45cf39e --- /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 - +