Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
31fc886
[FIX] document_knowledge: res.users.groups_id → group_ids in demo
dnplkndll Jun 19, 2026
e675161
[FIX] document_page: res.users.groups_id → group_ids in demo
dnplkndll Jun 19, 2026
3639022
Merge PR #618 into 19.0
OCA-git-bot Jun 19, 2026
020b6be
[BOT] post-merge updates
OCA-git-bot Jun 19, 2026
eb5e242
Merge PR #619 into 19.0
OCA-git-bot Jun 19, 2026
e04dd63
[BOT] post-merge updates
OCA-git-bot Jun 19, 2026
c28d973
[IMP] copier-update v1.43
dnplkndll Jun 19, 2026
ecce7e0
Merge pull request #621 from ledoent/19.0-copier-update-v143
pedrobaeza Jun 19, 2026
0021173
[ADD] document_page_reference
etobella Nov 27, 2019
2af3d4d
[IMP] document_page_reference: add option to create a new page from a…
JordiBForgeFlow Nov 29, 2019
4a2e087
[12.0][MIG] document_page_reference
Mar 5, 2020
4189976
[IMP] document_page_reference: black, isort, prettier
Sep 30, 2020
76172c3
[13.0][MIG] document_page_reference
Sep 30, 2020
1821f09
[IMP] document_page_reference: black, isort, prettier
mtelahun Nov 15, 2021
829fb8c
[MIG] document_page_reference: Migrate to 14.0
mtelahun Nov 15, 2021
f8ec231
[IMP] update dotfiles
OCA-git-bot Mar 30, 2022
66132af
[MIG] document_page_reference: Migration to 15.0
olgamarcocb May 18, 2022
8f96c43
[UPD] Update document_page_reference.pot
Jul 12, 2022
fd3cefb
[UPD] README.rst
OCA-git-bot Jul 12, 2022
5a6b880
[FIX] document_page_reference: assure content or content_parsed is vi…
MiquelRForgeFlow Nov 24, 2022
6631f37
[IMP] document_page_reference: auto-fill reference when not supplied.
LoisRForgeFlow Nov 16, 2022
7351910
[UPD] Update document_page_reference.pot
Dec 20, 2022
fc70bed
document_page_reference 15.0.1.0.1
OCA-git-bot Dec 20, 2022
5f4f780
Added translation using Weblate (Italian)
mymage Dec 28, 2022
a05649d
Translated using Weblate (Italian)
mymage Dec 28, 2022
4c26e39
Translated using Weblate (Italian)
mymage Dec 28, 2022
c1ea11a
document_page_reference 15.0.1.1.0
OCA-git-bot Apr 16, 2023
88ca0f9
Translated using Weblate (Italian)
mymage Jun 23, 2023
653534d
[MIG] document_page_reference: Migration to 16.0
kaynnan Jul 17, 2023
462dd7a
[UPD] Update document_page_reference.pot
Sep 4, 2023
fff9bc3
[UPD] README.rst
OCA-git-bot Sep 4, 2023
9ece4a8
Update translation files
weblate Sep 4, 2023
d21b7b9
Added translation using Weblate (Spanish)
Ivorra78 Sep 5, 2023
6b3c234
Translated using Weblate (Spanish)
Ivorra78 Sep 5, 2023
1a617e8
Updated from template
ivs-cetmix Nov 6, 2023
02ad9e6
[BOT] post-merge updates
OCA-git-bot Nov 6, 2023
cf14c09
Added translation using Weblate (Portuguese)
peterromao Feb 28, 2024
a81c598
Translated using Weblate (Portuguese)
peterromao Feb 28, 2024
9315183
[IMP] document_page_reference: pre-commit auto fixes
Jun 13, 2025
3944cd0
[MIG] document_page_reference: Migration to 18.0
Jun 13, 2025
4155174
[UPD] Update document_page_reference.pot
Jul 8, 2025
d9dfbb6
[BOT] post-merge updates
OCA-git-bot Jul 8, 2025
dbce923
[IMP+FIX] document_page_reference: Refactor code related to https://g…
victoralmau Aug 21, 2025
04e794f
[BOT] post-merge updates
OCA-git-bot Aug 21, 2025
e2adaac
[FIX] document_page_reference: Fix tests to use HTML
etobella Dec 17, 2025
82bae37
[BOT] post-merge updates
OCA-git-bot Dec 17, 2025
4a36466
[MIG] document_page_reference: Migration to 19.0
gregory-rutecki Mar 16, 2026
5d8a487
[FIX] document_page_reference: render reference links on 19.0
dnplkndll Jun 19, 2026
bb08bb8
[FIX] document_page_reference: render content_parsed in OWL form
dnplkndll Jun 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.35
_commit: v1.43
_src_path: git+https://github.com/OCA/oca-addons-repo-template
additional_ruff_rules: []
ci: GitHub
convert_readme_fragments_to_markdown: true
enable_checklog_odoo: true
generate_requirements_txt: true
Expand All @@ -17,6 +16,7 @@ odoo_test_flavor: Both
odoo_version: 19.0
org_name: Odoo Community Association (OCA)
org_slug: OCA
postgres_image: ''
rebel_module_groups: []
repo_description: knowledge
repo_name: knowledge
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: pre-commit

on:
Expand All @@ -16,7 +17,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
cache: 'pip'
cache-dependency-path: '.pre-commit-config.yaml'
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ jobs:
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- name: Upload screenshots from JS tests
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: Screenshots of failed JS tests - ${{ matrix.name }}${{ join(matrix.include) }}
path: /tmp/odoo_tests/${{ env.PGDATABASE }}
if-no-files-found: ignore
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
9 changes: 7 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exclude: |
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
python: python3
python: python3.12
node: "22.9.0"
repos:
- repo: local
Expand All @@ -38,6 +38,11 @@ repos:
entry: found a en.po file
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- id: obsolete dotfiles
name: obsolete dotfiles
entry: found obsolete files; remove them
files: '^(\.travis\.yml|\.t2d\.yml|CONTRIBUTING\.md|\.prettierrc\.yml|\.eslintrc\.yml)$'
language: fail
- repo: https://github.com/sbidoul/whool
rev: v1.3
hooks:
Expand All @@ -60,7 +65,7 @@ repos:
- --convert-fragments-to-markdown
- id: oca-gen-external-dependencies
- repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: v0.1.6
rev: v0.1.7
hooks:
- id: oca-checks-odoo-module
- id: oca-checks-po
Expand Down
9 changes: 0 additions & 9 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,11 @@ enable=anomalous-backslash-in-string,
no-write-in-compute,
# messages that do not cause the lint step to fail
consider-merging-classes-inherited,
create-user-wo-reset-password,
dangerous-filter-wo-user,
deprecated-module,
file-not-used,
invalid-commit,
missing-manifest-dependency,
missing-newline-extrafiles,
missing-readme,
no-utf8-coding-comment,
odoo-addons-relative-import,
old-api7-method-defined,
redefined-builtin,
too-complex,
unnecessary-utf8-coding-comment,
manifest-external-assets


Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

[![Support the OCA](https://odoo-community.org/readme-banner-image)](https://odoo-community.org/get-involved?utm_source=repo-readme)

# knowledge
[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=19.0)
[![Pre-commit Status](https://github.com/OCA/knowledge/actions/workflows/pre-commit.yml/badge.svg?branch=19.0)](https://github.com/OCA/knowledge/actions/workflows/pre-commit.yml?query=branch%3A19.0)
[![Build Status](https://github.com/OCA/knowledge/actions/workflows/test.yml/badge.svg?branch=19.0)](https://github.com/OCA/knowledge/actions/workflows/test.yml?query=branch%3A19.0)
Expand All @@ -7,8 +10,6 @@

<!-- /!\ do not modify above this line -->

# knowledge

knowledge

<!-- /!\ do not modify below this line -->
Expand All @@ -22,8 +23,8 @@ Available addons
addon | version | maintainers | summary
--- | --- | --- | ---
[attachment_zipped_download](attachment_zipped_download/) | 19.0.1.0.0 | | Attachment Zipped Download
[document_knowledge](document_knowledge/) | 19.0.1.0.0 | | Documents Knowledge
[document_page](document_page/) | 19.0.1.0.0 | | Document Page
[document_knowledge](document_knowledge/) | 19.0.1.0.1 | | Documents Knowledge
[document_page](document_page/) | 19.0.1.0.1 | | Document Page
[document_page_partner](document_page_partner/) | 19.0.1.0.0 | | Allows to link doucment pages to a partner
[document_url](document_url/) | 19.0.1.0.0 | | URL attachment

Expand Down
2 changes: 2 additions & 0 deletions checklog-odoo.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[checklog-odoo]
ignore=
WARNING.* 0 failed, 0 error\(s\).*
WARNING .* Killing chrome descendants-or-self .*
WARNING.* Missing widget: res_partner_many2one for field of type many2one.*
2 changes: 1 addition & 1 deletion document_knowledge/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Documents Knowledge
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:66fec3372f493ada35f69f8a33bcbd6d69729a0b313e4e77f4e9de54da42a11b
!! source digest: sha256:0ba6e5a014b0a43018d19d0e5a3901348c6db3a793909cce26079227507c7e08
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion document_knowledge/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Documents Knowledge",
"version": "19.0.1.0.0",
"version": "19.0.1.0.1",
"author": "OpenERP SA,"
"MONK Software, "
"Tecnativa, "
Expand Down
2 changes: 1 addition & 1 deletion document_knowledge/demo/document_knowledge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<odoo noupdate="1">
<record id="base.user_demo" model="res.users">
<field
name="groups_id"
name="group_ids"
eval="[(4,ref('document_knowledge.group_document_user'))]"
/>
</record>
Expand Down
2 changes: 1 addition & 1 deletion document_knowledge/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h1>Documents Knowledge</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:66fec3372f493ada35f69f8a33bcbd6d69729a0b313e4e77f4e9de54da42a11b
!! source digest: sha256:0ba6e5a014b0a43018d19d0e5a3901348c6db3a793909cce26079227507c7e08
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/knowledge/tree/19.0/document_knowledge"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_knowledge"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/knowledge&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module is the base for any knowledge and document management
Expand Down
2 changes: 1 addition & 1 deletion document_page/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Document Page
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bcbb716e0be1d95178f17d2c28f015e5cbb7a4c7b92cf08340f32dc00721258f
!! source digest: sha256:a36946766874eebc6ab6705fffe3a63a3c7dfcd2d0b1a2628a9d4d69414c791a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion document_page/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Document Page",
"version": "19.0.1.0.0",
"version": "19.0.1.0.1",
"category": "Knowledge Management",
"author": "OpenERP SA, Odoo Community Association (OCA)",
"images": [
Expand Down
2 changes: 1 addition & 1 deletion document_page/demo/document_page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<record id="base.user_demo" model="res.users">
<field
eval="[(4, ref('document_knowledge.group_document_user'))]"
name="groups_id"
name="group_ids"
/>
</record>

Expand Down
2 changes: 1 addition & 1 deletion document_page/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h1>Document Page</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bcbb716e0be1d95178f17d2c28f015e5cbb7a4c7b92cf08340f32dc00721258f
!! source digest: sha256:a36946766874eebc6ab6705fffe3a63a3c7dfcd2d0b1a2628a9d4d69414c791a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/knowledge/tree/19.0/document_page"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_page"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/knowledge&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to write web pages for internal documentation.</p>
Expand Down
96 changes: 96 additions & 0 deletions document_page_reference/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=======================
Document Page Reference
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:654977301f8ef4677d564b8e8401b7bf91b49393ee291bcee15012eaa42d7a8f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
: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/19.0/document_page_reference
:alt: OCA/knowledge
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_page_reference
: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=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to add a reference name on documents and simplifies
the link between document pages.

**Table of contents**

.. contents::
:local:

Usage
=====

When editing a document page add elements like {{XXX}} where XXX is the
reference of another page. Now, when viewing the document, it will link
directly to the page. Also, the name will be parsed as the display name.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/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 <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_reference%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Creu Blanca

Contributors
------------

- Enric Tobella <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-etobella| image:: https://github.com/etobella.png?size=40px
:target: https://github.com/etobella
:alt: etobella

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-etobella|

This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/19.0/document_page_reference>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions document_page_reference/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions document_page_reference/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Document Page Reference",
"summary": """
Include references on document pages""",
"version": "19.0.2.1.0",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",
"depends": ["document_page"],
"data": [
"views/document_page.xml",
"views/report_document_page.xml",
],
"assets": {
"web.assets_backend": [
"document_page_reference/static/src/js/editor.esm.js",
],
},
"maintainers": ["etobella"],
}
51 changes: 51 additions & 0 deletions document_page_reference/i18n/document_page_reference.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * document_page_reference
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: document_page_reference
#: model:ir.model,name:document_page_reference.model_document_page
msgid "Document Page"
msgstr ""

#. module: document_page_reference
#: model:ir.model.fields,field_description:document_page_reference.field_document_page__content_parsed
msgid "Parsed Content"
msgstr ""

#. module: document_page_reference
#: model:ir.model.fields,field_description:document_page_reference.field_document_page__reference
msgid "Reference"
msgstr ""

#. module: document_page_reference
#. odoo-python
#: code:addons/document_page_reference/models/document_page.py:0
msgid "Reference is not valid"
msgstr ""

#. module: document_page_reference
#. odoo-python
#: code:addons/document_page_reference/models/document_page.py:0
msgid "Reference must be unique"
msgstr ""

#. module: document_page_reference
#: model:ir.model.fields,help:document_page_reference.field_document_page__reference
msgid "Used to find the document, it can contain letters, numbers and _"
msgstr ""

#. module: document_page_reference
#: model_terms:ir.ui.view,arch_db:document_page_reference.document_page_form_view
msgid "internal_reference (autofilled if not value is provided)"
msgstr ""
Loading
Loading