[IMP] base_user_role_history: black, isort, prettier

This commit is contained in:
Mohamed Osman
2024-06-04 17:17:44 +00:00
parent 0dbcbdc596
commit 5bc11801a0
10 changed files with 45 additions and 40 deletions

View File

@@ -17,21 +17,21 @@ Base User Role History
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github
:target: https://github.com/OCA/server-backend/tree/16.0/base_user_role_history
:target: https://github.com/OCA/server-backend/tree/17.0/base_user_role_history
:alt: OCA/server-backend
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role_history
:target: https://translation.odoo-community.org/projects/server-backend-17-0/server-backend-17-0-base_user_role_history
: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/server-backend&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
This addon provides history for roles modifications on users.
Each time a role is added/updated/unlinked on a user, a new role history line
is created mentioning what changes were made and who made them.
Theses informations are directly accessible from users via a smart button.
This addon provides history for roles modifications on users. Each time
a role is added/updated/unlinked on a user, a new role history line is
created mentioning what changes were made and who made them. Theses
informations are directly accessible from users via a smart button.
**Table of contents**
@@ -41,14 +41,15 @@ Theses informations are directly accessible from users via a smart button.
Usage
=====
Changes on user roles are easily accessible via a button on user form view.
Changes on user roles are easily accessible via a button on user form
view.
Known issues / Roadmap
======================
Since roles on role history line have 'cascade' ondelete, role deletion leads
to role history line deletion. In order to keep history even in the case of
a role deletion, module could be upgraded.
Since roles on role history line have 'cascade' ondelete, role deletion
leads to role history line deletion. In order to keep history even in
the case of a role deletion, module could be upgraded.
Bug Tracker
===========
@@ -56,7 +57,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-backend/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/server-backend/issues/new?body=module:%20base_user_role_history%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20base_user_role_history%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.
@@ -64,18 +65,18 @@ Credits
=======
Authors
~~~~~~~
-------
* ACSONE SA/NV
Contributors
~~~~~~~~~~~~
------------
* Benoit Aimont <benoit.aimont@acsone.eu> (https://acsone.eu)
* Thomas Binsfeld <thomas.binsfeld@acsone.eu> (https://acsone.eu)
- Benoit Aimont <benoit.aimont@acsone.eu> (https://acsone.eu)
- Thomas Binsfeld <thomas.binsfeld@acsone.eu> (https://acsone.eu)
Maintainers
~~~~~~~~~~~
-----------
This module is maintained by the OCA.
@@ -95,6 +96,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-ThomasBinsfeld|
This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/16.0/base_user_role_history>`_ project on GitHub.
This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/17.0/base_user_role_history>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

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

View File

@@ -0,0 +1,2 @@
- Benoit Aimont \<<benoit.aimont@acsone.eu>\> (<https://acsone.eu>)
- Thomas Binsfeld \<<thomas.binsfeld@acsone.eu>\> (<https://acsone.eu>)

View File

@@ -1,2 +0,0 @@
* Benoit Aimont <benoit.aimont@acsone.eu> (https://acsone.eu)
* Thomas Binsfeld <thomas.binsfeld@acsone.eu> (https://acsone.eu)

View File

@@ -0,0 +1,4 @@
This addon provides history for roles modifications on users. Each time
a role is added/updated/unlinked on a user, a new role history line is
created mentioning what changes were made and who made them. Theses
informations are directly accessible from users via a smart button.

View File

@@ -1,4 +0,0 @@
This addon provides history for roles modifications on users.
Each time a role is added/updated/unlinked on a user, a new role history line
is created mentioning what changes were made and who made them.
Theses informations are directly accessible from users via a smart button.

View File

@@ -0,0 +1,3 @@
Since roles on role history line have 'cascade' ondelete, role deletion
leads to role history line deletion. In order to keep history even in
the case of a role deletion, module could be upgraded.

View File

@@ -1,3 +0,0 @@
Since roles on role history line have 'cascade' ondelete, role deletion leads
to role history line deletion. In order to keep history even in the case of
a role deletion, module could be upgraded.

View File

@@ -1 +1,2 @@
Changes on user roles are easily accessible via a button on user form view.
Changes on user roles are easily accessible via a button on user form
view.

View File

@@ -1,4 +1,3 @@
<?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">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -369,11 +368,11 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:db5f768a177dfcc1ad17e65d53bedeeac1d7d840e0d009dba5338d27478a0382
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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-backend/tree/16.0/base_user_role_history"><img alt="OCA/server-backend" src="https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role_history"><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-backend&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 addon provides history for roles modifications on users.
Each time a role is added/updated/unlinked on a user, a new role history line
is created mentioning what changes were made and who made them.
Theses informations are directly accessible from users via a smart button.</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-backend/tree/17.0/base_user_role_history"><img alt="OCA/server-backend" src="https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-backend-17-0/server-backend-17-0-base_user_role_history"><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-backend&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 addon provides history for roles modifications on users. Each time
a role is added/updated/unlinked on a user, a new role history line is
created mentioning what changes were made and who made them. Theses
informations are directly accessible from users via a smart button.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
@@ -390,20 +389,21 @@ Theses informations are directly accessible from users via a smart button.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>Changes on user roles are easily accessible via a button on user form view.</p>
<p>Changes on user roles are easily accessible via a button on user form
view.</p>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<p>Since roles on role history line have cascade ondelete, role deletion leads
to role history line deletion. In order to keep history even in the case of
a role deletion, module could be upgraded.</p>
<p>Since roles on role history line have cascade ondelete, role deletion
leads to role history line deletion. In order to keep history even in
the case of a role deletion, module could be upgraded.</p>
</div>
<div class="section" id="bug-tracker">
<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/server-backend/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/server-backend/issues/new?body=module:%20base_user_role_history%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-backend/issues/new?body=module:%20base_user_role_history%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">
@@ -430,7 +430,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/ThomasBinsfeld"><img alt="ThomasBinsfeld" src="https://github.com/ThomasBinsfeld.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-backend/tree/16.0/base_user_role_history">OCA/server-backend</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-backend/tree/17.0/base_user_role_history">OCA/server-backend</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>