From 16b3cf3aa5220d637cdccaf8baace88611e6a24d Mon Sep 17 00:00:00 2001 From: Cyril VINH-TUNG Date: Thu, 9 May 2024 19:37:48 -1000 Subject: [PATCH] [IMP] attachment_category: black, isort, prettier --- attachment_category/README.rst | 20 +++++++++---------- attachment_category/models/ir_attachment.py | 1 - .../models/ir_attachment_category.py | 1 - attachment_category/pyproject.toml | 3 +++ attachment_category/readme/CONTRIBUTORS.md | 1 + attachment_category/readme/CONTRIBUTORS.rst | 1 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 0 attachment_category/readme/USAGE.md | 1 + attachment_category/readme/USAGE.rst | 1 - .../static/description/index.html | 7 +++---- 10 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 attachment_category/pyproject.toml create mode 100644 attachment_category/readme/CONTRIBUTORS.md delete mode 100644 attachment_category/readme/CONTRIBUTORS.rst rename attachment_category/readme/{DESCRIPTION.rst => DESCRIPTION.md} (100%) create mode 100644 attachment_category/readme/USAGE.md delete mode 100644 attachment_category/readme/USAGE.rst diff --git a/attachment_category/README.rst b/attachment_category/README.rst index bc32a37c..aa3feddc 100644 --- a/attachment_category/README.rst +++ b/attachment_category/README.rst @@ -17,13 +17,13 @@ Atachment Category :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github - :target: https://github.com/OCA/knowledge/tree/14.0/attachment_category + :target: https://github.com/OCA/knowledge/tree/17.0/attachment_category :alt: OCA/knowledge .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/knowledge-14-0/knowledge-14-0-attachment_category + :target: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-attachment_category :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/knowledge&target_branch=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,7 +38,7 @@ This module adds a document category to help classification. Usage ===== -* Go to Attachments, and set categories as tags. +- Go to Attachments, and set categories as tags. Bug Tracker =========== @@ -46,7 +46,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. @@ -54,17 +54,17 @@ Credits ======= Authors -~~~~~~~ +------- * ACSONE SA/NV Contributors -~~~~~~~~~~~~ +------------ -* Denis Roussel +- Denis Roussel Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -76,6 +76,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/knowledge `_ project on GitHub. +This module is part of the `OCA/knowledge `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/attachment_category/models/ir_attachment.py b/attachment_category/models/ir_attachment.py index 5c6f144f..111f1b18 100644 --- a/attachment_category/models/ir_attachment.py +++ b/attachment_category/models/ir_attachment.py @@ -5,7 +5,6 @@ from odoo import fields, models class IrAttachment(models.Model): - _inherit = "ir.attachment" category_ids = fields.Many2many( diff --git a/attachment_category/models/ir_attachment_category.py b/attachment_category/models/ir_attachment_category.py index b742b2a8..32344c08 100644 --- a/attachment_category/models/ir_attachment_category.py +++ b/attachment_category/models/ir_attachment_category.py @@ -5,7 +5,6 @@ from odoo import api, fields, models class IrAttachmentCategory(models.Model): - _name = "ir.attachment.category" _description = "Attachment Category" _parent_store = True diff --git a/attachment_category/pyproject.toml b/attachment_category/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/attachment_category/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/attachment_category/readme/CONTRIBUTORS.md b/attachment_category/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..89c79f8e --- /dev/null +++ b/attachment_category/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Denis Roussel \<\> diff --git a/attachment_category/readme/CONTRIBUTORS.rst b/attachment_category/readme/CONTRIBUTORS.rst deleted file mode 100644 index 9179ee4b..00000000 --- a/attachment_category/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* Denis Roussel diff --git a/attachment_category/readme/DESCRIPTION.rst b/attachment_category/readme/DESCRIPTION.md similarity index 100% rename from attachment_category/readme/DESCRIPTION.rst rename to attachment_category/readme/DESCRIPTION.md diff --git a/attachment_category/readme/USAGE.md b/attachment_category/readme/USAGE.md new file mode 100644 index 00000000..08c33793 --- /dev/null +++ b/attachment_category/readme/USAGE.md @@ -0,0 +1 @@ +- Go to Attachments, and set categories as tags. diff --git a/attachment_category/readme/USAGE.rst b/attachment_category/readme/USAGE.rst deleted file mode 100644 index 2ca9eb6c..00000000 --- a/attachment_category/readme/USAGE.rst +++ /dev/null @@ -1 +0,0 @@ -* Go to Attachments, and set categories as tags. diff --git a/attachment_category/static/description/index.html b/attachment_category/static/description/index.html index 58556a03..e934d174 100644 --- a/attachment_category/static/description/index.html +++ b/attachment_category/static/description/index.html @@ -1,4 +1,3 @@ - @@ -369,7 +368,7 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:06d5f4bb34bd79a7d4b19e08c7ce71550f12bce30e22eeccc7989b3e2045bfda !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module adds a document category to help classification.

Table of contents

@@ -395,7 +394,7 @@ ul.auto-toc {

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.

@@ -419,7 +418,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

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/knowledge project on GitHub.

+

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

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