Skip to content

Commit

Permalink
[IMP] partner_deduplicate_acl: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Deriman-Alonso committed Jul 9, 2024
1 parent f22005d commit f17d530
Show file tree
Hide file tree
Showing 11 changed files with 123 additions and 107 deletions.
93 changes: 50 additions & 43 deletions partner_deduplicate_acl/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Deduplicate Contacts ACL
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:128fc3c0f9ebcb6f1329f4fcfabdeff1e51882b1d166d00e4de47fc327d9a825
!! source digest: sha256:899764afb496ed845a2315be7e225c83d430e047f6db01c4a089f54a43bbb200
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand All @@ -17,20 +17,20 @@ Deduplicate Contacts ACL
: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/16.0/partner_deduplicate_acl
:target: https://github.com/OCA/partner-contact/tree/17.0/partner_deduplicate_acl
: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-16-0/partner-contact-16-0-partner_deduplicate_acl
:target: https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-partner_deduplicate_acl
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of the CRM contact deduplicator to add
permission groups that allow the matching users to use those tools, not
needing to be the sale settings manager.
This module extends the functionality of the CRM contact deduplicator to
add permission groups that allow the matching users to use those tools,
not needing to be the sale settings manager.

**Table of contents**

Expand All @@ -42,75 +42,82 @@ Configuration

To configure this module you need to:

#. Go to *Settings > Users & Companies > Users*.
#. Choose a user.
#. From field *Deduplicate Contacts* under *Other* in *Access Rights* tab
choose desired permission level:
1. Go to *Settings > Users & Companies > Users*.
2. Choose a user.
3. From field *Deduplicate Contacts* under *Other* in *Access Rights*
tab choose desired permission level:

- *Manually* allows to run a manual deduplication process.
- *Automatically* allows to run an automatic deduplication process.
- *Manually* allows to run a manual deduplication process.

.. warning::
Automatic contact deduplication can easily lead to unwanted
results. Better backup before choosing this option.
- *Automatically* allows to run an automatic deduplication process.

- *Without restrictions* executes chosen deduplication method with admin
rights, to be able to update objects where the user would not normally
have write rights, and to allow them to merge contacts with different
email addresses.
.. warning::

.. warning::
This is an advanced feature. Make sure to train the user(s) before
enabling this permission.
Automatic contact deduplication can easily lead to unwanted
results. Better backup before choosing this option.

- *Without restrictions* executes chosen deduplication method with
admin rights, to be able to update objects where the user would
not normally have write rights, and to allow them to merge
contacts with different email addresses.

.. warning::

This is an advanced feature. Make sure to train the user(s)
before enabling this permission.

Usage
=====

To use this module, you need to:

#. Ask your admin to give you the new rights.
#. Go to *Contacts > Tools > Deduplicate Contacts* as usual.
1. Ask your admin to give you the new rights.
2. Go to *Contacts > Tools > Deduplicate Contacts* as usual.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_deduplicate_acl%0Aversion:%2016.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_acl%0Aversion:%2017.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.

Credits
=======

Authors
~~~~~~~
-------

* Tecnativa

Contributors
~~~~~~~~~~~~
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Rafael Blasco
- Jairo Llopis
- Vicent Cubells
- Pedro M. Baeza
- Luis M. Ontalba
- Victor M.M. Torres
- Carlos Roca
- João Marques
- César A. Sánchez

* `Tecnativa <https://www.tecnativa.com>`_:
- Kevin Khao <kevin.khao@gmail.com>
- `Pesol <https://www.pesol.es>`__:

* Rafael Blasco
* Jairo Llopis
* Vicent Cubells
* Pedro M. Baeza
* Luis M. Ontalba
* Victor M.M. Torres
* Carlos Roca
* João Marques
* César A. Sánchez
* Kevin Khao <kevin.khao@gmail.com>
- Jonathan Oscategui Taza <info@pesol.es>

* `Pesol <https://www.pesol.es>`__:
- `Binhex <https://binhex.cloud/>`__:

* Jonathan Oscategui Taza <info@pesol.es>
- Deriman Alonso

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -122,6 +129,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/16.0/partner_deduplicate_acl>`_ project on GitHub.
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/17.0/partner_deduplicate_acl>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions partner_deduplicate_acl/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
22 changes: 22 additions & 0 deletions partner_deduplicate_acl/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
To configure this module you need to:

1. Go to *Settings \> Users & Companies \> Users*.
2. Choose a user.
3. From field *Deduplicate Contacts* under *Other* in *Access Rights*
tab choose desired permission level:
- *Manually* allows to run a manual deduplication process.

- *Automatically* allows to run an automatic deduplication process.

> [!WARNING]
> Automatic contact deduplication can easily lead to unwanted
> results. Better backup before choosing this option.
- *Without restrictions* executes chosen deduplication method with
admin rights, to be able to update objects where the user would
not normally have write rights, and to allow them to merge
contacts with different email addresses.

> [!WARNING]
> This is an advanced feature. Make sure to train the user(s)
> before enabling this permission.
22 changes: 0 additions & 22 deletions partner_deduplicate_acl/readme/CONFIGURE.rst

This file was deleted.

15 changes: 15 additions & 0 deletions partner_deduplicate_acl/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- [Tecnativa](https://www.tecnativa.com):
- Rafael Blasco
- Jairo Llopis
- Vicent Cubells
- Pedro M. Baeza
- Luis M. Ontalba
- Victor M.M. Torres
- Carlos Roca
- João Marques
- César A. Sánchez
- Kevin Khao \<<kevin.khao@gmail.com>\>
- [Pesol](https://www.pesol.es):
- Jonathan Oscategui Taza \<<info@pesol.es>\>
- [Binhex](https://binhex.cloud/):
- Deriman Alonso
16 changes: 0 additions & 16 deletions partner_deduplicate_acl/readme/CONTRIBUTORS.rst

This file was deleted.

3 changes: 3 additions & 0 deletions partner_deduplicate_acl/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module extends the functionality of the CRM contact deduplicator to
add permission groups that allow the matching users to use those tools,
not needing to be the sale settings manager.
3 changes: 0 additions & 3 deletions partner_deduplicate_acl/readme/DESCRIPTION.rst

This file was deleted.

4 changes: 4 additions & 0 deletions partner_deduplicate_acl/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To use this module, you need to:

1. Ask your admin to give you the new rights.
2. Go to *Contacts \> Tools \> Deduplicate Contacts* as usual.
4 changes: 0 additions & 4 deletions partner_deduplicate_acl/readme/USAGE.rst

This file was deleted.

45 changes: 26 additions & 19 deletions partner_deduplicate_acl/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -366,12 +367,12 @@ <h1 class="title">Deduplicate Contacts ACL</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:128fc3c0f9ebcb6f1329f4fcfabdeff1e51882b1d166d00e4de47fc327d9a825
!! source digest: sha256:899764afb496ed845a2315be7e225c83d430e047f6db01c4a089f54a43bbb200
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" href="https://github.com/OCA/partner-contact/tree/16.0/partner_deduplicate_acl"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_deduplicate_acl"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of the CRM contact deduplicator to add
permission groups that allow the matching users to use those tools, not
needing to be the sale settings manager.</p>
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" href="https://github.com/OCA/partner-contact/tree/17.0/partner_deduplicate_acl"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-partner_deduplicate_acl"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of the CRM contact deduplicator to
add permission groups that allow the matching users to use those tools,
not needing to be the sale settings manager.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -394,8 +395,8 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
</li>
<li><p class="first">Choose a user.</p>
</li>
<li><p class="first">From field <em>Deduplicate Contacts</em> under <em>Other</em> in <em>Access Rights</em> tab
choose desired permission level:</p>
<li><p class="first">From field <em>Deduplicate Contacts</em> under <em>Other</em> in <em>Access Rights</em>
tab choose desired permission level:</p>
<ul>
<li><p class="first"><em>Manually</em> allows to run a manual deduplication process.</p>
</li>
Expand All @@ -406,14 +407,14 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
results. Better backup before choosing this option.</p>
</div>
</li>
<li><p class="first"><em>Without restrictions</em> executes chosen deduplication method with admin
rights, to be able to update objects where the user would not normally
have write rights, and to allow them to merge contacts with different
email addresses.</p>
<li><p class="first"><em>Without restrictions</em> executes chosen deduplication method with
admin rights, to be able to update objects where the user would
not normally have write rights, and to allow them to merge
contacts with different email addresses.</p>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">This is an advanced feature. Make sure to train the user(s) before
enabling this permission.</p>
<p class="last">This is an advanced feature. Make sure to train the user(s)
before enabling this permission.</p>
</div>
</li>
</ul>
Expand All @@ -433,7 +434,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<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 to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_deduplicate_acl%0Aversion:%2016.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_acl%0Aversion:%2017.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">
Expand Down Expand Up @@ -464,16 +465,22 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<li>Jonathan Oscategui Taza &lt;<a class="reference external" href="mailto:info&#64;pesol.es">info&#64;pesol.es</a>&gt;</li>
</ul>
</li>
<li><a class="reference external" href="https://binhex.cloud/">Binhex</a>:<ul>
<li>Deriman Alonso</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<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/16.0/partner_deduplicate_acl">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/17.0/partner_deduplicate_acl">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>
Expand Down

0 comments on commit f17d530

Please sign in to comment.