OdooWiki OCA HUB

Project Task Pull Request State

project_task_pull_request_state folder_open OCA/project open_in_new
Project Management License: AGPL-3

This module extends functionality of the project_task_pull_request module. It adds a "State" field to Task alongside with PR URI field.

Following pre-defined states are available: "Draft", "Open", "Merged", "Closed". You can add or modify this list easily by overriding the "selection_pr_state" function in the "project.task" model

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a Pull Request State field to tasks, showing whether the linked pull request is Draft, Open, Merged or Closed. A default state can be set globally in Project settings or per project.

This module builds on the pull request tracking already available on tasks. When a task has a pull request link, a new "PR State" field appears next to it, showing one of four values: Draft, Open, Merged or Closed.

The state is filled in automatically when a pull request link is added to a task. The value used comes first from the project's own "Default PR State" setting; if the project does not define one, the global default from Project settings is used. If no default is configured, the field stays empty. Removing the pull request link clears the state. The field is stored and its changes are tracked in the task's history, and it is not copied when a task is duplicated.

Where it appears: - On the task form, right after the pull request link field, and only when a link exists. - In the task search view, where you can filter tasks that have a pull request and group tasks by PR State. - On the project form, next to the existing pull request settings, to set the project's default state. - In Project settings, under task management, to set the company-wide default state.

It touches the project.task, project.project and res.config.settings models. The list of available states is defined in one place, so it can be extended by developers if needed.

Models and fields (3)
  • project.task · extends an existing modelpr_state (PR State)
  • project.project · extends an existing modelpr_state_default (Default PR State)
  • res.config.settings · extends an existing modelpr_state_default (Default PR State)

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0
  • In General Settings -\> Project -\> Project Task Pull Request section select default PR State for all tasks

To define custom default PR state for particular project:

  • Select project -\> Open "Settings" -\> Set "Default PR State"

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.