project_task_pull_request_state
This module extends the project_task_pull_request module by adding a state field to track the pull request state in project tasks.
Key Features
- project.task: Adds a pr_state selection field with predefined states (Draft, Open, Merged, Closed) that is computed and stored based on the presence of pr_uri and default settings.
- project.task: Provides a selection_pr_state method that can be overridden to customize available pull request states.
- project.task: Displays the pr_state field in the task form view, visible only when a pull request URI is present.
- project.task: Adds filtering and grouping options for pr_state in the task search view.
- project.project: Adds a pr_state_default field to define the default pull request state for tasks within the project.
- project.project: Includes the pr_state_default field in the project settings form view.
- res.config.settings: Adds a global default pull request state configuration parameter.
- res.config.settings: Provides a configuration section in general settings for setting the default pull request state.