Browse Source

[MIG] partner_deduplicate_by_ref: Migration to 13.0

14.0
Manuel Calero 5 years ago
committed by mariadforgeflow
parent
commit
3a8d104b2f
  1. 15
      partner_deduplicate_by_ref/README.rst
  2. 9
      partner_deduplicate_by_ref/__manifest__.py
  3. 4
      partner_deduplicate_by_ref/i18n/es.po
  4. 5
      partner_deduplicate_by_ref/readme/CONTRIBUTORS.rst
  5. 2
      partner_deduplicate_by_ref/readme/USAGE.rst
  6. 11
      partner_deduplicate_by_ref/static/description/index.html
  7. 9
      partner_deduplicate_by_ref/tests/test_partner_deduplicate_by_ref.py
  8. 2
      partner_deduplicate_by_ref/wizards/partner_merge.py

15
partner_deduplicate_by_ref/README.rst

@ -14,13 +14,13 @@ Deduplicate Contacts by reference
: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_by_ref
:target: https://github.com/OCA/partner-contact/tree/13.0/partner_deduplicate_by_ref
: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_by_ref
:target: https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-partner_deduplicate_by_ref
: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|
@ -49,7 +49,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/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 <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_deduplicate_by_ref%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_deduplicate_by_ref%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
@ -66,8 +66,9 @@ Contributors
* `Tecnativa <https://www.tecnativa.com>`_:
* Pedro Baeza <pedro.baeza@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
* Pedro M. Baeza
* David Vidal
* Manuel Calero
Maintainers
~~~~~~~~~~~
@ -82,6 +83,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 <https://github.com/OCA/partner-contact/tree/12.0/partner_deduplicate_by_ref>`_ project on GitHub.
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/13.0/partner_deduplicate_by_ref>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

9
partner_deduplicate_by_ref/__manifest__.py

@ -1,13 +1,14 @@
# Copyright 2017 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2020 Manuel Calero - Tecnativa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Deduplicate Contacts by reference",
"version": "12.0.1.0.0",
"version": "13.0.1.0.0",
"category": "Tools",
"website": "https://www.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"],
}

4
partner_deduplicate_by_ref/i18n/es.po

@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 13.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-01 21:29+0000\n"
"PO-Revision-Date: 2017-03-01 21:29+0000\n"
@ -19,7 +19,7 @@ msgstr ""
#. module: partner_deduplicate_by_ref
#: model:ir.model,name:partner_deduplicate_by_ref.model_base_partner_merge_automatic_wizard
msgid "Merge Partner Wizard"
msgstr ""
msgstr "Asistente para fusionar contactos"
#. module: partner_deduplicate_by_ref
#: model:ir.model.fields,field_description:partner_deduplicate_by_ref.field_base_partner_merge_automatic_wizard__group_by_ref

5
partner_deduplicate_by_ref/readme/CONTRIBUTORS.rst

@ -1,4 +1,5 @@
* `Tecnativa <https://www.tecnativa.com>`_:
* Pedro Baeza <pedro.baeza@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
* Pedro M. Baeza
* David Vidal
* Manuel Calero

2
partner_deduplicate_by_ref/readme/USAGE.rst

@ -1,6 +1,6 @@
To use this module, you need to:
#. Go to *Sales > Tools > Deduplicate Contacts*.
#. Go to *Contacts > Tools > Deduplicate Contacts*.
#. Mark "Reference" in the section "Search duplicates based on duplicated data
in".
#. This criteria will be used for deduplicating.

11
partner_deduplicate_by_ref/static/description/index.html

@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/partner-contact/tree/12.0/partner_deduplicate_by_ref"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-partner_deduplicate_by_ref"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/134/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/partner-contact/tree/13.0/partner_deduplicate_by_ref"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-partner_deduplicate_by_ref"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/134/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module extends the criteria to match duplicated contacts using the field
reference.</p>
<p><strong>Table of contents</strong></p>
@ -398,7 +398,7 @@ in”.</li>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/partner-contact/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_deduplicate_by_ref%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_deduplicate_by_ref%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
@ -413,8 +413,9 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
<ul class="simple">
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Pedro Baeza &lt;<a class="reference external" href="mailto:pedro.baeza&#64;tecnativa.com">pedro.baeza&#64;tecnativa.com</a>&gt;</li>
<li>David Vidal &lt;<a class="reference external" href="mailto:david.vidal&#64;tecnativa.com">david.vidal&#64;tecnativa.com</a>&gt;</li>
<li>Pedro M. Baeza</li>
<li>David Vidal</li>
<li>Manuel Calero</li>
</ul>
</li>
</ul>
@ -426,7 +427,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/partner-contact/tree/12.0/partner_deduplicate_by_ref">OCA/partner-contact</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/partner-contact/tree/13.0/partner_deduplicate_by_ref">OCA/partner-contact</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>

9
partner_deduplicate_by_ref/tests/test_partner_deduplicate_by_ref.py

@ -1,4 +1,5 @@
# Copyright 2017 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2020 Manuel Calero - Tecnativa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests import common
@ -9,15 +10,15 @@ class TestDeduplicateByRef(common.TransactionCase):
def setUp(self):
super().setUp()
self.partner_1 = self.env["res.partner"].create(
{"name": "Partner 1", "ref": "123456", "email": "test@deduplicate.com",}
{"name": "Partner 1", "ref": "123456", "email": "test@deduplicate.com"}
)
self.partner_2 = self.env["res.partner"].create(
{"name": "Partner 2", "ref": "123456", "email": "test@deduplicate.com",}
{"name": "Partner 2", "ref": "123456", "email": "test@deduplicate.com"}
)
def test_deduplicate_by_ref(self):
wizard = self.env["base.partner.merge.automatic.wizard"].create(
{"group_by_ref": True,}
{"group_by_ref": True}
)
wizard.action_start_manual_process()
found_match = False
@ -30,7 +31,7 @@ class TestDeduplicateByRef(common.TransactionCase):
def test_deduplicate_by_ref_and_is_company(self):
wizard = self.env["base.partner.merge.automatic.wizard"].create(
{"group_by_ref": True, "group_by_email": True,}
{"group_by_ref": True, "group_by_email": True}
)
wizard.action_start_manual_process()
found_match = False

2
partner_deduplicate_by_ref/wizards/partner_merge.py

@ -1,7 +1,7 @@
# Copyright 2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import fields, models
from odoo import fields, models
class BasePartnerMergeAutomaticWizard(models.TransientModel):

Loading…
Cancel
Save