Repository
OCA/knowledge · module folder · Try on Runboat
Module version
2.0.0
Category
Project
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/knowledge
Last tracking update
2026-08-07 08:42:56
Authors
Odoo Community Association (OCA), Escodoo
Maintainers
Odoo Community Association (OCA), Escodoo
Committers
Weblate, OCA-git-bot, oca-ci, CristianoMafraJunior
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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 Inherits project.view_task_form2
view_wiki_form_task document.page.form - document_page_project_task document.page form Inherits document_page.view_wiki_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.