Document Page Tag Print Control

document_page_tag_print_control
REPOSITORY
REPOSITORYOCA/knowledge
GIT
GIThttps://github.com/OCA/knowledge.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/knowledge/tree/17.0/document_page_tag_print_control
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYKnowledge
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sygel
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sygel
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Juan Alberto Raja
WEBSITE
WEBSITEhttps://github.com/OCA/knowledge
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:07
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/knowledge:
    - document_page_tag
    - document_page
    - document_knowledge
odoo/odoo:
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds print control functionality to document pages based on tags. It allows users to control which document pages cannot be printed by configuring tags with a "Not Printable" attribute.

When a document page has one or more tags marked as not printable, printing functionality will be disabled and a warning will be shown if attempted.

Users with the "Manager" role in the "Document Knowledge" section (under Settings > Users > Access Rights > Other) are exempt from these restrictions and can print any document page regardless of its tags.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_document_page_tag_form_extended document.page.tag.form.extended document.page.tag field Inherits document_page_tag.view_document_page_tag_form
view_document_page_tag_search_extended document.page.tag.search.extended document.page.tag field Inherits document_page_tag.view_document_page_tag_search
view_document_page_tag_tree_extended document.page.tag.tree.extended document.page.tag field Inherits document_page_tag.view_document_page_tag_tree
Models touched (3)

New fields (1)
  • is_not_printable Boolean
    compute='_compute_is_not_printable' help='Indicates if the document cannot be printed based on its tags' store=True
Public methods (0)

No public methods.

New fields (1)
  • is_not_printable Boolean
    default=False help='If checked, pages with this tag cannot be printed'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/knowledge
GIT
GIThttps://github.com/OCA/knowledge.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/knowledge/tree/16.0/document_page_tag_print_control
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYKnowledge
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sygel
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sygel
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Juan Alberto Raja
WEBSITE
WEBSITEhttps://github.com/OCA/knowledge
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:12:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/knowledge:
    - document_page_tag
    - document_page
    - document_knowledge
odoo/odoo:
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - web_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds print control functionality to document pages based on tags. It allows users to control which document pages cannot be printed by configuring tags with a "Not Printable" attribute.

When a document page has one or more tags marked as not printable, printing functionality will be disabled and a warning will be shown if attempted.

Users with the "Manager" role in the "Document Knowledge" section (under Settings > Users > Access Rights > Other) are exempt from these restrictions and can print any document page regardless of its tags.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_document_page_tag_form_extended document.page.tag.form.extended document.page.tag field Inherits document_page_tag.view_document_page_tag_form
view_document_page_tag_search_extended document.page.tag.search.extended document.page.tag field Inherits document_page_tag.view_document_page_tag_search
view_document_page_tag_tree_extended document.page.tag.tree.extended document.page.tag field Inherits document_page_tag.view_document_page_tag_tree
Models touched (3)

New fields (1)
  • is_not_printable Boolean
    compute='_compute_is_not_printable' help='Indicates if the document cannot be printed based on its tags' store=True
Public methods (0)

No public methods.

New fields (1)
  • is_not_printable Boolean
    default=False help='If checked, pages with this tag cannot be printed'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.