[IMP] tracking_manager: black, isort, prettier

pull/2916/head
Christopher Rogos 2024-04-22 09:35:29 +00:00
parent c94076d517
commit 51611e8936
10 changed files with 79 additions and 47 deletions

View File

@ -1,2 +1,3 @@
# generated from manifests external_dependencies # generated from manifests external_dependencies
astor astor
odoo_test_helper

View File

@ -17,19 +17,22 @@ Tracking Manager
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/OCA/server-tools/tree/16.0/tracking_manager :target: https://github.com/OCA/server-tools/tree/17.0/tracking_manager
:alt: OCA/server-tools :alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-tracking_manager :target: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-tracking_manager
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=16.0 :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=17.0
:alt: Try me on Runboat :alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
This module allows to track all fields on every model that has a chatter, including one2many and many2many ones. This excludes the computed, readonly, related fields by default. This module allows to track all fields on every model that has a
In addition, line changes of a one2many field can be tracked (e.g. product_uom_qty of an order_line in a sale order). chatter, including one2many and many2many ones. This excludes the
computed, readonly, related fields by default. In addition, line changes
of a one2many field can be tracked (e.g. product_uom_qty of an
order_line in a sale order).
**Table of contents** **Table of contents**
@ -39,20 +42,29 @@ In addition, line changes of a one2many field can be tracked (e.g. product_uom_q
Usage Usage
===== =====
- In setting > models: select a model - In setting > models: select a model
- Check "Active" under Custom Tracking. - Check "Active" under Custom Tracking.
- You have two options - 1) manually configure tracked fields one by one, or 2) determine tracked fields based on a specific domain. - You have two options - 1) manually configure tracked fields one by
- For 1) manually configure tracked fields one by one one, or 2) determine tracked fields based on a specific domain.
- Click on Tracked Fields smart button, and select/unselect Custom Tracking. - For 1) manually configure tracked fields one by one
- For 2) determine tracked fields based on a specific domain
- Select "Automatic configuration", and then set the domain accordingly.
- Click "Update" for the domain to take effect.
.. image:: https://raw.githubusercontent.com/OCA/server-tools/16.0/tracking_manager/static/description/model_view.png - Click on Tracked Fields smart button, and select/unselect Custom
Tracking.
- Then select the fields to track - For 2) determine tracked fields based on a specific domain
.. image:: https://raw.githubusercontent.com/OCA/server-tools/16.0/tracking_manager/static/description/fields.png - Select "Automatic configuration", and then set the domain
accordingly.
- Click "Update" for the domain to take effect.
|image|
- Then select the fields to track
|image1|
.. |image| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/tracking_manager/static/description/model_view.png
.. |image1| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/tracking_manager/static/description/fields.png
Bug Tracker Bug Tracker
=========== ===========
@ -60,7 +72,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20tracking_manager%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20tracking_manager%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. Do not contact contributors directly about support or help with technical issues.
@ -68,18 +80,18 @@ Credits
======= =======
Authors Authors
~~~~~~~ -------
* Akretion * Akretion
Contributors Contributors
~~~~~~~~~~~~ ------------
* Kévin Roche <kevin.roche@akretion.com> - Kévin Roche <kevin.roche@akretion.com>
* Sébastien BEAU <sebastien.beau@akretion.com> - Sébastien BEAU <sebastien.beau@akretion.com>
Maintainers Maintainers
~~~~~~~~~~~ -----------
This module is maintained by the OCA. This module is maintained by the OCA.
@ -102,6 +114,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-Kev-Roche| |maintainer-sebastienbeau| |maintainer-Kev-Roche| |maintainer-sebastienbeau|
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/16.0/tracking_manager>`_ project on GitHub. This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/17.0/tracking_manager>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -3,7 +3,6 @@ from openupgradelib import openupgrade
@openupgrade.migrate() @openupgrade.migrate()
def migrate(env, version): def migrate(env, version):
openupgrade.logged_query( openupgrade.logged_query(
env.cr, env.cr,
""" """

View File

@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"

View File

@ -0,0 +1,2 @@
- Kévin Roche \<<kevin.roche@akretion.com>\>
- Sébastien BEAU \<<sebastien.beau@akretion.com>\>

View File

@ -1,2 +0,0 @@
* Kévin Roche <kevin.roche@akretion.com>
* Sébastien BEAU <sebastien.beau@akretion.com>

View File

@ -0,0 +1,5 @@
This module allows to track all fields on every model that has a
chatter, including one2many and many2many ones. This excludes the
computed, readonly, related fields by default. In addition, line changes
of a one2many field can be tracked (e.g. product_uom_qty of an
order_line in a sale order).

View File

@ -1,2 +0,0 @@
This module allows to track all fields on every model that has a chatter, including one2many and many2many ones. This excludes the computed, readonly, related fields by default.
In addition, line changes of a one2many field can be tracked (e.g. product_uom_qty of an order_line in a sale order).

View File

@ -1,14 +1,17 @@
- In setting > models: select a model - In setting \> models: select a model
- Check "Active" under Custom Tracking. - Check "Active" under Custom Tracking.
- You have two options - 1) manually configure tracked fields one by one, or 2) determine tracked fields based on a specific domain. - You have two options - 1) manually configure tracked fields one by
one, or 2) determine tracked fields based on a specific domain.
- For 1) manually configure tracked fields one by one - For 1) manually configure tracked fields one by one
- Click on Tracked Fields smart button, and select/unselect Custom Tracking. - Click on Tracked Fields smart button, and select/unselect Custom
Tracking.
- For 2) determine tracked fields based on a specific domain - For 2) determine tracked fields based on a specific domain
- Select "Automatic configuration", and then set the domain accordingly. - Select "Automatic configuration", and then set the domain
accordingly.
- Click "Update" for the domain to take effect. - Click "Update" for the domain to take effect.
.. image:: ./static/description/model_view.png ![image](./static/description/model_view.png)
- Then select the fields to track - Then select the fields to track
.. image:: ./static/description/fields.png ![image](./static/description/fields.png)

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
@ -368,9 +369,12 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a7d5bd552b419ff6e2058562ce30c52387acbe3f01cbd1ec3804a78a9fc5a1c9 !! source digest: sha256:a7d5bd552b419ff6e2058562ce30c52387acbe3f01cbd1ec3804a78a9fc5a1c9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/server-tools/tree/16.0/tracking_manager"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-tracking_manager"><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/server-tools&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><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/server-tools/tree/17.0/tracking_manager"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-tracking_manager"><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/server-tools&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 allows to track all fields on every model that has a chatter, including one2many and many2many ones. This excludes the computed, readonly, related fields by default. <p>This module allows to track all fields on every model that has a
In addition, line changes of a one2many field can be tracked (e.g. product_uom_qty of an order_line in a sale order).</p> chatter, including one2many and many2many ones. This excludes the
computed, readonly, related fields by default. In addition, line changes
of a one2many field can be tracked (e.g. product_uom_qty of an
order_line in a sale order).</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
<ul class="simple"> <ul class="simple">
@ -389,25 +393,32 @@ In addition, line changes of a one2many field can be tracked (e.g. product_uom_q
<ul class="simple"> <ul class="simple">
<li>In setting &gt; models: select a model</li> <li>In setting &gt; models: select a model</li>
<li>Check “Active” under Custom Tracking.</li> <li>Check “Active” under Custom Tracking.</li>
<li>You have two options - 1) manually configure tracked fields one by one, or 2) determine tracked fields based on a specific domain.</li> <li>You have two options - 1) manually configure tracked fields one by
<li>For 1) manually configure tracked fields one by one one, or 2) determine tracked fields based on a specific domain.</li>
- Click on Tracked Fields smart button, and select/unselect Custom Tracking.</li> <li>For 1) manually configure tracked fields one by one<ul>
<li>For 2) determine tracked fields based on a specific domain <li>Click on Tracked Fields smart button, and select/unselect Custom
- Select “Automatic configuration”, and then set the domain accordingly. Tracking.</li>
- Click “Update” for the domain to take effect.</li>
</ul> </ul>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/16.0/tracking_manager/static/description/model_view.png" src="https://raw.githubusercontent.com/OCA/server-tools/16.0/tracking_manager/static/description/model_view.png" /> </li>
<li>For 2) determine tracked fields based on a specific domain<ul>
<li>Select “Automatic configuration”, and then set the domain
accordingly.</li>
<li>Click “Update” for the domain to take effect.</li>
</ul>
</li>
</ul>
<p><img alt="image" src="https://raw.githubusercontent.com/OCA/server-tools/17.0/tracking_manager/static/description/model_view.png" /></p>
<ul class="simple"> <ul class="simple">
<li>Then select the fields to track</li> <li>Then select the fields to track</li>
</ul> </ul>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/16.0/tracking_manager/static/description/fields.png" src="https://raw.githubusercontent.com/OCA/server-tools/16.0/tracking_manager/static/description/fields.png" /> <p><img alt="image1" src="https://raw.githubusercontent.com/OCA/server-tools/17.0/tracking_manager/static/description/fields.png" /></p>
</div> </div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1> <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. 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 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/server-tools/issues/new?body=module:%20tracking_manager%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/server-tools/issues/new?body=module:%20tracking_manager%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> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@ -434,7 +445,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/Kev-Roche"><img alt="Kev-Roche" src="https://github.com/Kev-Roche.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/sebastienbeau"><img alt="sebastienbeau" src="https://github.com/sebastienbeau.png?size=40px" /></a></p> <p><a class="reference external image-reference" href="https://github.com/Kev-Roche"><img alt="Kev-Roche" src="https://github.com/Kev-Roche.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/sebastienbeau"><img alt="sebastienbeau" src="https://github.com/sebastienbeau.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/16.0/tracking_manager">OCA/server-tools</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/17.0/tracking_manager">OCA/server-tools</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> <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>
</div> </div>