[IMP] document_knowledge: pre-commit auto fixes

This commit is contained in:
Mikel Martin 2024-01-31 23:44:13 +01:00 committed by Khôi (Kiên Kim)
parent c5e1903086
commit 2c2e1fb1fa
10 changed files with 96 additions and 91 deletions

View File

@ -17,18 +17,19 @@ Documents Knowledge
: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%2Fknowledge-lightgray.png?logo=github .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
:target: https://github.com/OCA/knowledge/tree/16.0/document_knowledge :target: https://github.com/OCA/knowledge/tree/17.0/document_knowledge
:alt: OCA/knowledge :alt: OCA/knowledge
.. |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/knowledge-16-0/knowledge-16-0-document_knowledge :target: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_knowledge
: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/knowledge&target_branch=16.0 :target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&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 is the base for any knowledge and document management application. This module is the base for any knowledge and document management
application.
**Table of contents** **Table of contents**
@ -40,23 +41,23 @@ Configuration
To set up this module, you need to go to: To set up this module, you need to go to:
* Knowledge / Configuration / Settings - Knowledge / Configuration / Settings
From this menu you'll have a central access to install the apps that belong From this menu you'll have a central access to install the apps that
to Knowledge. belong to Knowledge.
* Check *Attachments List and Document Indexation* if you want to install the - Check *Attachments List and Document Indexation* if you want to
module that allows users to attach documents to any model. install the module that allows users to attach documents to any
* Check *Manage attachments centrally* if you want all users to be able to model.
access to the all attachments to which they have read permissions, from the - Check *Manage attachments centrally* if you want all users to be able
menu *Knowledge / Documents* to access to the all attachments to which they have read permissions,
from the menu *Knowledge / Documents*
If you want to grant Central Access to Documents only to some users: If you want to grant Central Access to Documents only to some users:
#. Go to *Settings/Activate the developer mode*. Only a user with 1. Go to *Settings/Activate the developer mode*. Only a user with
*Administration / Settings* permissions can do that. *Administration / Settings* permissions can do that.
2. Go to *Settings / Users & Companies / Users* and set the checkbox
#. Go to *Settings / Users & Companies / Users* and set the checkbox
*Central access to Documents* to the selected users. *Central access to Documents* to the selected users.
Usage Usage
@ -65,8 +66,8 @@ Usage
This module adds a new top level menu *Knowledge* This module adds a new top level menu *Knowledge*
Users with permission *Central access to Documents* can access in Users with permission *Central access to Documents* can access in
*Knowledge/Documents* to all the documents attached to records of any model *Knowledge/Documents* to all the documents attached to records of any
for which they have read permission. model for which they have read permission.
Bug Tracker Bug Tracker
=========== ===========
@ -74,7 +75,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/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/knowledge/issues/new?body=module:%20document_knowledge%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_knowledge%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.
@ -82,7 +83,7 @@ Credits
======= =======
Authors Authors
~~~~~~~ -------
* OpenERP SA * OpenERP SA
* MONK Software * MONK Software
@ -90,35 +91,35 @@ Authors
* ForgeFlow * ForgeFlow
Contributors Contributors
~~~~~~~~~~~~ ------------
* Odoo SA <info@odoo.com> - Odoo SA <info@odoo.com>
* Savoir-faire Linux <support@savoirfairelinux.com> - Savoir-faire Linux <support@savoirfairelinux.com>
* Gervais Naoussi <gervaisnaoussi@gmail.com> - Gervais Naoussi <gervaisnaoussi@gmail.com>
* Leonardo Donelli <leonardo.donelli@monksoftware.it> - Leonardo Donelli <leonardo.donelli@monksoftware.it>
* Maxime Chambreuil <mchambreuil@ursainfosystems.com> - Maxime Chambreuil <mchambreuil@ursainfosystems.com>
* Fayez Qandeel - Fayez Qandeel
* Iván Todorovich <ivan.todorovich@gmail.com> - Iván Todorovich <ivan.todorovich@gmail.com>
* Jordi Ballester <jordi.ballester@forgeflow.com> - Jordi Ballester <jordi.ballester@forgeflow.com>
* Marie Lejeune <marie.lejeune@acsone.eu> - Marie Lejeune <marie.lejeune@acsone.eu>
* `Tecnativa <https://www.tecnativa.com>`_: - `Tecnativa <https://www.tecnativa.com>`__:
* Vicent Cubells - Vicent Cubells
* Ernesto Tejeda - Ernesto Tejeda
Trobz Trobz
* Dung Tran <dungtd@trobz.com> - Dung Tran <dungtd@trobz.com>
Other credits Other credits
~~~~~~~~~~~~~ -------------
The development of this module has been financially supported by: The development of this module has been financially supported by:
* Camptocamp - Camptocamp
Maintainers Maintainers
~~~~~~~~~~~ -----------
This module is maintained by the OCA. This module is maintained by the OCA.
@ -130,6 +131,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use. promote its widespread use.
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/16.0/document_knowledge>`_ project on GitHub. This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/17.0/document_knowledge>`_ 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

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

View File

@ -0,0 +1,19 @@
To set up this module, you need to go to:
- Knowledge / Configuration / Settings
From this menu you'll have a central access to install the apps that
belong to Knowledge.
- Check *Attachments List and Document Indexation* if you want to
install the module that allows users to attach documents to any model.
- Check *Manage attachments centrally* if you want all users to be able
to access to the all attachments to which they have read permissions,
from the menu *Knowledge / Documents*
If you want to grant Central Access to Documents only to some users:
1. Go to *Settings/Activate the developer mode*. Only a user with
*Administration / Settings* permissions can do that.
2. Go to *Settings / Users & Companies / Users* and set the checkbox
*Central access to Documents* to the selected users.

View File

@ -1,20 +0,0 @@
To set up this module, you need to go to:
* Knowledge / Configuration / Settings
From this menu you'll have a central access to install the apps that belong
to Knowledge.
* Check *Attachments List and Document Indexation* if you want to install the
module that allows users to attach documents to any model.
* Check *Manage attachments centrally* if you want all users to be able to
access to the all attachments to which they have read permissions, from the
menu *Knowledge / Documents*
If you want to grant Central Access to Documents only to some users:
#. Go to *Settings/Activate the developer mode*. Only a user with
*Administration / Settings* permissions can do that.
#. Go to *Settings / Users & Companies / Users* and set the checkbox
*Central access to Documents* to the selected users.

View File

@ -0,0 +1,16 @@
- Odoo SA \<<info@odoo.com>\>
- Savoir-faire Linux \<<support@savoirfairelinux.com>\>
- Gervais Naoussi \<<gervaisnaoussi@gmail.com>\>
- Leonardo Donelli \<<leonardo.donelli@monksoftware.it>\>
- Maxime Chambreuil \<<mchambreuil@ursainfosystems.com>\>
- Fayez Qandeel
- Iván Todorovich \<<ivan.todorovich@gmail.com>\>
- Jordi Ballester \<<jordi.ballester@forgeflow.com>\>
- Marie Lejeune \<<marie.lejeune@acsone.eu>\>
- [Tecnativa](https://www.tecnativa.com):
- Vicent Cubells
- Ernesto Tejeda
Trobz
- Dung Tran \<<dungtd@trobz.com>\>

View File

@ -1,17 +0,0 @@
* Odoo SA <info@odoo.com>
* Savoir-faire Linux <support@savoirfairelinux.com>
* Gervais Naoussi <gervaisnaoussi@gmail.com>
* Leonardo Donelli <leonardo.donelli@monksoftware.it>
* Maxime Chambreuil <mchambreuil@ursainfosystems.com>
* Fayez Qandeel
* Iván Todorovich <ivan.todorovich@gmail.com>
* Jordi Ballester <jordi.ballester@forgeflow.com>
* Marie Lejeune <marie.lejeune@acsone.eu>
* `Tecnativa <https://www.tecnativa.com>`_:
* Vicent Cubells
* Ernesto Tejeda
Trobz
* Dung Tran <dungtd@trobz.com>

View File

@ -1,3 +1,3 @@
The development of this module has been financially supported by: The development of this module has been financially supported by:
* Camptocamp - Camptocamp

View File

@ -1 +1,2 @@
This module is the base for any knowledge and document management application. This module is the base for any knowledge and document management
application.

View File

@ -1,5 +1,5 @@
This module adds a new top level menu *Knowledge* This module adds a new top level menu *Knowledge*
Users with permission *Central access to Documents* can access in Users with permission *Central access to Documents* can access in
*Knowledge/Documents* to all the documents attached to records of any model *Knowledge/Documents* to all the documents attached to records of any
for which they have read permission. model for which they have read permission.

View File

@ -369,8 +369,9 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c1488375286777cfdb9187452f29e3f8a28157ba0f11fa21061916703e669afc !! source digest: sha256:c1488375286777cfdb9187452f29e3f8a28157ba0f11fa21061916703e669afc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/knowledge/tree/16.0/document_knowledge"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_knowledge"><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/knowledge&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/knowledge/tree/17.0/document_knowledge"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_knowledge"><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/knowledge&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 is the base for any knowledge and document management application.</p> <p>This module is the base for any knowledge and document management
application.</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">
@ -392,14 +393,15 @@ ul.auto-toc {
<ul class="simple"> <ul class="simple">
<li>Knowledge / Configuration / Settings</li> <li>Knowledge / Configuration / Settings</li>
</ul> </ul>
<p>From this menu youll have a central access to install the apps that belong <p>From this menu youll have a central access to install the apps that
to Knowledge.</p> belong to Knowledge.</p>
<ul class="simple"> <ul class="simple">
<li>Check <em>Attachments List and Document Indexation</em> if you want to install the <li>Check <em>Attachments List and Document Indexation</em> if you want to
module that allows users to attach documents to any model.</li> install the module that allows users to attach documents to any
<li>Check <em>Manage attachments centrally</em> if you want all users to be able to model.</li>
access to the all attachments to which they have read permissions, from the <li>Check <em>Manage attachments centrally</em> if you want all users to be able
menu <em>Knowledge / Documents</em></li> to access to the all attachments to which they have read permissions,
from the menu <em>Knowledge / Documents</em></li>
</ul> </ul>
<p>If you want to grant Central Access to Documents only to some users:</p> <p>If you want to grant Central Access to Documents only to some users:</p>
<ol class="arabic simple"> <ol class="arabic simple">
@ -413,15 +415,15 @@ menu <em>Knowledge / Documents</em></li>
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1> <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>This module adds a new top level menu <em>Knowledge</em></p> <p>This module adds a new top level menu <em>Knowledge</em></p>
<p>Users with permission <em>Central access to Documents</em> can access in <p>Users with permission <em>Central access to Documents</em> can access in
<em>Knowledge/Documents</em> to all the documents attached to records of any model <em>Knowledge/Documents</em> to all the documents attached to records of any
for which they have read permission.</p> model for which they have read permission.</p>
</div> </div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1> <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/knowledge/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/knowledge/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/knowledge/issues/new?body=module:%20document_knowledge%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/knowledge/issues/new?body=module:%20document_knowledge%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">
@ -472,7 +474,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/16.0/document_knowledge">OCA/knowledge</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/17.0/document_knowledge">OCA/knowledge</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>