diff --git a/document_page_tag/README.rst b/document_page_tag/README.rst index fc7bc744..31c8bee3 100644 --- a/document_page_tag/README.rst +++ b/document_page_tag/README.rst @@ -17,13 +17,13 @@ Document Page Tag :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/17.0/document_page_tag + :target: https://github.com/OCA/knowledge/tree/18.0/document_page_tag :alt: OCA/knowledge .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_page_tag + :target: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page_tag :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=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -59,7 +59,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. @@ -74,11 +74,14 @@ Authors Contributors ------------ -- Holger Brunn -- Marcel Savegnago -- Manuel Regidor -- Angel Garcia de la Chica Herrera -- Alberto Martínez Rodríguez +- Holger Brunn +- Marcel Savegnago +- Manuel Regidor +- Angel Garcia de la Chica Herrera +- Alberto Martínez Rodríguez +- `Heliconia Solutions Pvt. Ltd. `__ + + - Bhavesh Heliconia Maintainers ----------- @@ -93,6 +96,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_tag/__manifest__.py b/document_page_tag/__manifest__.py index e47559a7..ed5525b7 100644 --- a/document_page_tag/__manifest__.py +++ b/document_page_tag/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Document Page Tag", - "version": "17.0.1.0.0", + "version": "18.0.1.0.0", "author": "Therp BV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/knowledge", "license": "AGPL-3", diff --git a/document_page_tag/models/document_page_tag.py b/document_page_tag/models/document_page_tag.py index cb5bf89b..a1584e1b 100644 --- a/document_page_tag/models/document_page_tag.py +++ b/document_page_tag/models/document_page_tag.py @@ -15,10 +15,14 @@ class DocumentPageTag(models.Model): ("unique_name", "unique(name)", "Tags must be unique"), ] - @api.model - def create(self, vals): + @api.model_create_multi + def create(self, vals_list): """Be nice when trying to create duplicates""" - existing = self.search([("name", "=ilike", vals["name"])], limit=1) - if existing: - return existing - return super().create(vals) + records = self.env["document.page.tag"] + for vals in vals_list: + existing = self.search([("name", "=ilike", vals.get("name"))], limit=1) + if existing: + records |= existing + else: + records |= super().create([vals]) + return records diff --git a/document_page_tag/readme/CONTRIBUTORS.md b/document_page_tag/readme/CONTRIBUTORS.md index 118c016a..c7612180 100644 --- a/document_page_tag/readme/CONTRIBUTORS.md +++ b/document_page_tag/readme/CONTRIBUTORS.md @@ -3,3 +3,5 @@ - Manuel Regidor \<\> - Angel Garcia de la Chica Herrera \<\> - Alberto Martínez Rodríguez \<\> +- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io) + - Bhavesh Heliconia diff --git a/document_page_tag/static/description/index.html b/document_page_tag/static/description/index.html index 630f9c90..9512fe2f 100644 --- a/document_page_tag/static/description/index.html +++ b/document_page_tag/static/description/index.html @@ -8,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. @@ -274,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 } @@ -300,7 +301,7 @@ span.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -368,7 +369,7 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:35143b301def9f32dcb02ce28ccc5f698e48246a91f8cf6189e6cbcd5b9f93d7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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 fill in keywords on your pages to simplify finding them afterwards.

Table of contents

@@ -405,7 +406,7 @@ keyword and choose searching for keywords.

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.

@@ -424,16 +425,22 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
  • Manuel Regidor <manuel.regidor@sygel.es>
  • Angel Garcia de la Chica Herrera <angel.garcia@sygel.es>
  • Alberto Martínez Rodríguez <alberto.martinez@sygel.es>
  • +
  • Heliconia Solutions Pvt. Ltd.
      +
    • Bhavesh Heliconia
    • +
    +
  • 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_page_tag/views/document_page.xml b/document_page_tag/views/document_page.xml index b66e6cb2..fe41c92c 100644 --- a/document_page_tag/views/document_page.xml +++ b/document_page_tag/views/document_page.xml @@ -44,7 +44,7 @@ document_page.tags.tree document.page - tree + list document.page.tag.tree document.page.tag - + - + @@ -60,7 +60,7 @@ Tags ir.actions.act_window document.page.tag - tree,form + list,form