From 6efda838000949dc7ba9182e34763e97723869df Mon Sep 17 00:00:00 2001 From: Luis Rodriguez Date: Tue, 7 Jan 2025 13:17:52 +0100 Subject: [PATCH] [IMP] document_page_partner: pre-commit auto fixes --- document_page_partner/README.rst | 21 ++++++++++--------- document_page_partner/pyproject.toml | 3 +++ document_page_partner/readme/CONTRIBUTORS.md | 1 + document_page_partner/readme/CONTRIBUTORS.rst | 1 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 0 .../readme/{USAGE.rst => USAGE.md} | 3 ++- .../static/description/index.html | 21 +++++++++++-------- document_url/static/src/js/url.esm.js | 5 +++-- 8 files changed, 32 insertions(+), 23 deletions(-) create mode 100644 document_page_partner/pyproject.toml create mode 100644 document_page_partner/readme/CONTRIBUTORS.md delete mode 100644 document_page_partner/readme/CONTRIBUTORS.rst rename document_page_partner/readme/{DESCRIPTION.rst => DESCRIPTION.md} (100%) rename document_page_partner/readme/{USAGE.rst => USAGE.md} (56%) diff --git a/document_page_partner/README.rst b/document_page_partner/README.rst index e6e3fcfe..97b5be02 100644 --- a/document_page_partner/README.rst +++ b/document_page_partner/README.rst @@ -17,13 +17,13 @@ Link to a partner in document pages :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/16.0/document_page_partner + :target: https://github.com/OCA/knowledge/tree/17.0/document_page_partner :alt: OCA/knowledge .. |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_page_partner + :target: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_page_partner :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=16.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,8 @@ This module allows you to organize your knowledgebase by partner. Usage ===== -To use this module, simply fill in a partner for some pages, then you can search by partner or group by partner. +To use this module, simply fill in a partner for some pages, then you +can search by partner or group by partner. Bug Tracker =========== @@ -46,7 +47,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 +55,17 @@ Credits ======= Authors -~~~~~~~ +------- * Therp BV Contributors -~~~~~~~~~~~~ +------------ -* Holger Brunn +- Holger Brunn Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -76,6 +77,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/document_page_partner/pyproject.toml b/document_page_partner/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/document_page_partner/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/document_page_partner/readme/CONTRIBUTORS.md b/document_page_partner/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..a089790b --- /dev/null +++ b/document_page_partner/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Holger Brunn \<\> diff --git a/document_page_partner/readme/CONTRIBUTORS.rst b/document_page_partner/readme/CONTRIBUTORS.rst deleted file mode 100644 index b120a956..00000000 --- a/document_page_partner/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* Holger Brunn diff --git a/document_page_partner/readme/DESCRIPTION.rst b/document_page_partner/readme/DESCRIPTION.md similarity index 100% rename from document_page_partner/readme/DESCRIPTION.rst rename to document_page_partner/readme/DESCRIPTION.md diff --git a/document_page_partner/readme/USAGE.rst b/document_page_partner/readme/USAGE.md similarity index 56% rename from document_page_partner/readme/USAGE.rst rename to document_page_partner/readme/USAGE.md index d958ad25..f0636e40 100644 --- a/document_page_partner/readme/USAGE.rst +++ b/document_page_partner/readme/USAGE.md @@ -1 +1,2 @@ -To use this module, simply fill in a partner for some pages, then you can search by partner or group by partner. +To use this module, simply fill in a partner for some pages, then you +can search by partner or group by partner. diff --git a/document_page_partner/static/description/index.html b/document_page_partner/static/description/index.html index 52574575..093aac5d 100644 --- a/document_page_partner/static/description/index.html +++ b/document_page_partner/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 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code { 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.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,7 +369,7 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:551f3befa9a02d00f51e8256594e83f031d0f482ccdeae01bb56ff8b901760d9 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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 allows you to organize your knowledgebase by partner.

Table of contents

@@ -386,14 +386,15 @@ ul.auto-toc {

Usage

-

To use this module, simply fill in a partner for some pages, then you can search by partner or group by partner.

+

To use this module, simply fill in a partner for some pages, then you +can search by partner or group by partner.

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.

@@ -413,11 +414,13 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

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.

-

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/document_url/static/src/js/url.esm.js b/document_url/static/src/js/url.esm.js index 2ecfb553..c2b4e1b1 100644 --- a/document_url/static/src/js/url.esm.js +++ b/document_url/static/src/js/url.esm.js @@ -1,9 +1,9 @@ /** @odoo-module **/ +import {AttachmentList} from "@mail/core/common/attachment_list"; import {Chatter} from "@mail/core/web/chatter"; import {patch} from "@web/core/utils/patch"; import {url} from "@web/core/utils/urls"; -import {AttachmentList} from "@mail/core/common/attachment_list"; patch(Chatter.prototype, { _onAddUrl(event) { @@ -50,11 +50,12 @@ patch(AttachmentList.prototype, { * Return the url of the attachment. Temporary attachments, a.k.a. uploading * attachments, do not have an url. * + * @param {Object} attachment * @returns {String} */ canDownload(attachment) { return ( - super.canDownload(attachment) && attachment.mimetype != "application/link" + super.canDownload(attachment) && attachment.mimetype !== "application/link" ); }, get attachmentUrl() {