From 5bb5f5c0d0cb9d4e954edd827c0abb9f780e564f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Wed, 9 Oct 2024 08:13:12 +0200 Subject: [PATCH] [IMP] dms_attachment_link: pre-commit auto fixes --- dms_attachment_link/README.rst | 39 ++++++++++--------- dms_attachment_link/pyproject.toml | 3 ++ dms_attachment_link/readme/CONTRIBUTORS.md | 3 ++ dms_attachment_link/readme/CONTRIBUTORS.rst | 4 -- dms_attachment_link/readme/DESCRIPTION.md | 2 + dms_attachment_link/readme/DESCRIPTION.rst | 1 - dms_attachment_link/readme/USAGE.md | 11 ++++++ dms_attachment_link/readme/USAGE.rst | 9 ----- .../static/description/index.html | 27 +++++++------ 9 files changed, 56 insertions(+), 43 deletions(-) create mode 100644 dms_attachment_link/pyproject.toml create mode 100644 dms_attachment_link/readme/CONTRIBUTORS.md delete mode 100644 dms_attachment_link/readme/CONTRIBUTORS.rst create mode 100644 dms_attachment_link/readme/DESCRIPTION.md delete mode 100644 dms_attachment_link/readme/DESCRIPTION.rst create mode 100644 dms_attachment_link/readme/USAGE.md delete mode 100644 dms_attachment_link/readme/USAGE.rst diff --git a/dms_attachment_link/README.rst b/dms_attachment_link/README.rst index 80be4f891..a9573e8d6 100644 --- a/dms_attachment_link/README.rst +++ b/dms_attachment_link/README.rst @@ -17,18 +17,19 @@ Dms Attachment Link :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdms-lightgray.png?logo=github - :target: https://github.com/OCA/dms/tree/16.0/dms_attachment_link + :target: https://github.com/OCA/dms/tree/17.0/dms_attachment_link :alt: OCA/dms .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms_attachment_link + :target: https://translation.odoo-community.org/projects/dms-17-0/dms-17-0-dms_attachment_link :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/dms&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/dms&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module adds a wizard to be able to link an DMS file as an attachment of a document. +This module adds a wizard to be able to link an DMS file as an +attachment of a document. **Table of contents** @@ -40,12 +41,14 @@ Usage To use this module, you need to: -#. Open the form view of a document (Example: the contact "Azure Interior"). -#. Go to the chatter and click on the clip icon. -#. Click **Add DMS File** link. -#. A popup wizard will appear. -#. Search for the desired DMS file (Example: Sydney.jpg) and click on the "Add" button. -#. A new attachment will be created for the document without duplicating +1. Open the form view of a document (Example: the contact "Azure + Interior"). +2. Go to the chatter and click on the clip icon. +3. Click **Add DMS File** link. +4. A popup wizard will appear. +5. Search for the desired DMS file (Example: Sydney.jpg) and click on + the "Add" button. +6. A new attachment will be created for the document without duplicating the content. Bug Tracker @@ -54,7 +57,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -62,20 +65,20 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* `Tecnativa `_ +- `Tecnativa `__ - * Pedro M. Baeza - * Víctor Martínez + - Pedro M. Baeza + - Víctor Martínez Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -95,6 +98,6 @@ Current `maintainer `__: |maintainer-victoralmau| -This module is part of the `OCA/dms `_ project on GitHub. +This module is part of the `OCA/dms `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/dms_attachment_link/pyproject.toml b/dms_attachment_link/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/dms_attachment_link/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/dms_attachment_link/readme/CONTRIBUTORS.md b/dms_attachment_link/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..00fb40664 --- /dev/null +++ b/dms_attachment_link/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [Tecnativa](https://www.tecnativa.com) + - Pedro M. Baeza + - Víctor Martínez diff --git a/dms_attachment_link/readme/CONTRIBUTORS.rst b/dms_attachment_link/readme/CONTRIBUTORS.rst deleted file mode 100644 index 4c9d0f2a9..000000000 --- a/dms_attachment_link/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* `Tecnativa `_ - - * Pedro M. Baeza - * Víctor Martínez diff --git a/dms_attachment_link/readme/DESCRIPTION.md b/dms_attachment_link/readme/DESCRIPTION.md new file mode 100644 index 000000000..193b9bb23 --- /dev/null +++ b/dms_attachment_link/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module adds a wizard to be able to link an DMS file as an +attachment of a document. diff --git a/dms_attachment_link/readme/DESCRIPTION.rst b/dms_attachment_link/readme/DESCRIPTION.rst deleted file mode 100644 index d6172b1a6..000000000 --- a/dms_attachment_link/readme/DESCRIPTION.rst +++ /dev/null @@ -1 +0,0 @@ -This module adds a wizard to be able to link an DMS file as an attachment of a document. diff --git a/dms_attachment_link/readme/USAGE.md b/dms_attachment_link/readme/USAGE.md new file mode 100644 index 000000000..8f72b5dbf --- /dev/null +++ b/dms_attachment_link/readme/USAGE.md @@ -0,0 +1,11 @@ +To use this module, you need to: + +1. Open the form view of a document (Example: the contact "Azure + Interior"). +2. Go to the chatter and click on the clip icon. +3. Click **Add DMS File** link. +4. A popup wizard will appear. +5. Search for the desired DMS file (Example: Sydney.jpg) and click on + the "Add" button. +6. A new attachment will be created for the document without + duplicating the content. diff --git a/dms_attachment_link/readme/USAGE.rst b/dms_attachment_link/readme/USAGE.rst deleted file mode 100644 index 4b6103b41..000000000 --- a/dms_attachment_link/readme/USAGE.rst +++ /dev/null @@ -1,9 +0,0 @@ -To use this module, you need to: - -#. Open the form view of a document (Example: the contact "Azure Interior"). -#. Go to the chatter and click on the clip icon. -#. Click **Add DMS File** link. -#. A popup wizard will appear. -#. Search for the desired DMS file (Example: Sydney.jpg) and click on the "Add" button. -#. A new attachment will be created for the document without duplicating - the content. diff --git a/dms_attachment_link/static/description/index.html b/dms_attachment_link/static/description/index.html index b5b3dc16a..e6001a8e7 100644 --- a/dms_attachment_link/static/description/index.html +++ b/dms_attachment_link/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,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. @@ -275,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 } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,8 +369,9 @@

Dms Attachment Link

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:7d11e23d33bcf0bcc4ec886c80804ce0aa6c270a32ba249fa1f87c425f9c117b !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/dms Translate me on Weblate Try me on Runboat

-

This module adds a wizard to be able to link an DMS file as an attachment of a document.

+

Beta License: AGPL-3 OCA/dms Translate me on Weblate Try me on Runboat

+

This module adds a wizard to be able to link an DMS file as an +attachment of a document.

Table of contents

    @@ -388,11 +389,13 @@

    Dms Attachment Link

    Usage

    To use this module, you need to:

      -
    1. Open the form view of a document (Example: the contact “Azure Interior”).
    2. +
    3. Open the form view of a document (Example: the contact “Azure +Interior”).
    4. Go to the chatter and click on the clip icon.
    5. Click Add DMS File link.
    6. A popup wizard will appear.
    7. -
    8. Search for the desired DMS file (Example: Sydney.jpg) and click on the “Add” button.
    9. +
    10. Search for the desired DMS file (Example: Sydney.jpg) and click on +the “Add” button.
    11. A new attachment will be created for the document without duplicating the content.
    @@ -402,7 +405,7 @@

    Bug Tracker

    Bugs are tracked on GitHub 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.

    +feedback.

    Do not contact contributors directly about support or help with technical issues.

@@ -426,13 +429,15 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

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.

Current maintainer:

victoralmau

-

This module is part of the OCA/dms project on GitHub.

+

This module is part of the OCA/dms project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.