Document Page Project Task

document_page_project_task
REPOSITORY
REPOSITORYOCA/knowledge
GIT
GIThttps://github.com/OCA/knowledge.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/knowledge/tree/18.0/document_page_project_task
VERSION
VERSION 2.0.0
CATEGORY
CATEGORYProject
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Escodoo
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Escodoo
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, CristianoMafraJunior
WEBSITE
WEBSITEhttps://github.com/OCA/knowledge
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/knowledge:
    - document_page_project
    - document_page
    - document_knowledge
odoo/odoo:
    - project
    - analytic
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - rating
    - resource
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends the document page (wiki) functionality by allowing you to link them directly to project tasks.

## Main Features

* **Link Wiki Pages to Multiple Tasks**: Allows associating document pages to one or more project tasks via a Many2many relationship
* **Automatic Project Filling**: When all linked tasks share the same project, it is automatically filled on the document
* **Consistency Validation**: If a project is defined on the wiki page, all linked tasks must belong to that project
* **Smart Filtering**: When a project is selected, only tasks from that project are displayed for selection
* **Page Counter**: Displays the number of wiki pages linked to each task directly in the task view

## Benefits

* Organize project documentation hierarchically (Project → Tasks → Wiki)
* A single wiki page can document multiple related tasks (e.g., a spec shared by several tasks)
* A task can reference multiple wiki pages for different aspects of its work
* Keep documentation close to the work context (tasks)
* Quickly access all documentation related to a specific task

## Dependencies

This module requires:
* `document_page_project`: Module that links document pages to projects
* `project`: Odoo's project management module

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_task_form2 project.task.form - document_page_project_task project.task div Inherits project.view_task_form2
view_wiki_form_task document.page.form - document_page_project_task document.page field Inherits document_page.view_wiki_form
Models touched (2)

New fields (1)
  • task_ids Many2many → project.task
    column1='document_page_id' column2='task_id' comodel_name='project.task' relation='document_page_project_task_rel' string='Tasks'
Public methods (1)
  • default_get(self, fields_list)
    @api.model
    Fill task_ids and project_id when created with default_task_id in context.

New fields (2)
  • document_page_count Integer
    compute='_compute_document_page_count'
  • document_page_ids Many2many → document.page
    column1='task_id' column2='document_page_id' comodel_name='document.page' relation='document_page_project_task_rel' string='Wiki Pages'
Public methods (0)

No public methods.