From 285cda5af5fdf249ba344444a937df1d4fdf0ffe Mon Sep 17 00:00:00 2001 From: Davit Lomauridze Date: Mon, 13 May 2024 16:25:38 +0400 Subject: [PATCH] [IMP] document_page_portal: pre-commit auto fixes --- document_page_portal/README.rst | 10 +-- document_page_portal/__manifest__.py | 8 +- .../document_page_portal_security.xml | 10 +-- .../static/description/index.html | 18 ++-- .../src/js/document_page_portal_tour.js | 2 +- document_page_portal/views/assets.xml | 19 ----- .../views/document_page_portal_templates.xml | 82 +++++++++---------- .../odoo/addons/document_page_portal | 1 + setup/document_page_portal/setup.py | 6 ++ 9 files changed, 73 insertions(+), 83 deletions(-) delete mode 100644 document_page_portal/views/assets.xml create mode 120000 setup/document_page_portal/odoo/addons/document_page_portal create mode 100644 setup/document_page_portal/setup.py diff --git a/document_page_portal/README.rst b/document_page_portal/README.rst index a14b35b4..908f3165 100644 --- a/document_page_portal/README.rst +++ b/document_page_portal/README.rst @@ -17,13 +17,13 @@ Document Page Portal :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/13.0/document_page_portal + :target: https://github.com/OCA/knowledge/tree/15.0/document_page_portal :alt: OCA/knowledge .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/knowledge-13-0/knowledge-13-0-document_page_portal + :target: https://translation.odoo-community.org/projects/knowledge-15-0/knowledge-15-0-document_page_portal :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=13.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=15.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -51,7 +51,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. @@ -98,6 +98,6 @@ Current `maintainer `__: |maintainer-marcelsavegnago| -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_portal/__manifest__.py b/document_page_portal/__manifest__.py index 5b28d0a6..e541f880 100644 --- a/document_page_portal/__manifest__.py +++ b/document_page_portal/__manifest__.py @@ -6,7 +6,7 @@ "name": "Document Page Portal", "summary": """ This module enables document page portal""", - "version": "13.0.1.0.0", + "version": "15.0.1.0.0", "category": "Knowledge Management", "author": "Escodoo, Odoo Community Association (OCA)", "maintainers": ["marcelsavegnago"], @@ -15,10 +15,14 @@ "license": "AGPL-3", "depends": ["base", "portal", "document_page"], "data": [ - "views/assets.xml", "views/document_page.xml", "security/document_page_portal_security.xml", "security/ir.model.access.csv", "views/document_page_portal_templates.xml", ], + "assets": { + "web.assets_tests": [ + "document_page_portal/static/src/js/document_page_portal_tour.js" + ], + }, } diff --git a/document_page_portal/security/document_page_portal_security.xml b/document_page_portal/security/document_page_portal_security.xml index 28177488..4ab86ef4 100644 --- a/document_page_portal/security/document_page_portal_security.xml +++ b/document_page_portal/security/document_page_portal_security.xml @@ -1,6 +1,5 @@ - - + Documents: knowledge user: see all @@ -17,9 +16,8 @@ ] + name="groups" + eval="[(4, ref('base.group_portal')),(4, ref('base.group_user'))]" + /> - diff --git a/document_page_portal/static/description/index.html b/document_page_portal/static/description/index.html index d7dc39ed..2e1c113d 100644 --- a/document_page_portal/static/description/index.html +++ b/document_page_portal/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:83751d0dd805c839f85221e62ddf9569bc2555dda895792cc05bcc5cbc4ab377 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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 documents to be made available on the portal.

Table of contents

@@ -401,7 +401,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.

@@ -431,13 +431,15 @@ 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.

Current maintainer:

marcelsavegnago

-

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_portal/static/src/js/document_page_portal_tour.js b/document_page_portal/static/src/js/document_page_portal_tour.js index ee5068c8..9865bfc5 100644 --- a/document_page_portal/static/src/js/document_page_portal_tour.js +++ b/document_page_portal/static/src/js/document_page_portal_tour.js @@ -1,4 +1,4 @@ -odoo.define("document_page_portal.tour", function(require) { +odoo.define("document_page_portal.tour", function (require) { "use strict"; var tour = require("web_tour.tour"); diff --git a/document_page_portal/views/assets.xml b/document_page_portal/views/assets.xml deleted file mode 100644 index 496baf9d..00000000 --- a/document_page_portal/views/assets.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - -