Skip to content

[19.0][IMP] project_task_code: per-project task name display - #1786

Open
JasminSForgeFlow wants to merge 1 commit into
OCA:19.0from
ForgeFlow:19.0-imp-project_task_code
Open

[19.0][IMP] project_task_code: per-project task name display#1786
JasminSForgeFlow wants to merge 1 commit into
OCA:19.0from
ForgeFlow:19.0-imp-project_task_code

Conversation

@JasminSForgeFlow

Copy link
Copy Markdown

Adds a Task Name Display setting on the project, choosing how its tasks are identified:

  • Number and Title (default) — the current [code] Title behaviour, unchanged.
  • Number only — the task number alone. The title is hidden in the form and kanban and is no longer required, so tasks can be identified by their number without carrying a redundant title.

This replaces the usual downstream workaround of overwriting name with code and flattening display_name, which destroys the title at the data level — most visibly for tasks created from an incoming email, where Odoo puts the mail subject in the title.

Two related fixes come with it:

  • display_name falls back to the task number when a task has no title, instead of computing an empty display name.
  • Duplicating an untitled task keeps it untitled, instead of producing a "False (copy)" title.

name is redefined as not required at model level (a number-only project has no title to require); the requirement moves to the form view, where it applies only to projects displaying the title.

@OCA-git-bot OCA-git-bot added series:19.0 mod:project_task_code Module project_task_code labels Aug 5, 2026
Add a "Task Name Display" setting on the project, choosing whether its
tasks are identified by their number and title (default, current
behaviour) or by their number alone.

In "Number only" projects the title is hidden and no longer required, so
tasks can be identified by their number without carrying a redundant
title. The task title is never overwritten, so a task created from an
incoming email keeps the mail subject as its title.

Also fall back to the task number when a task has no title, instead of
computing an empty display name, and keep an untitled task untitled when
it is duplicated.
@JasminSForgeFlow
JasminSForgeFlow force-pushed the 19.0-imp-project_task_code branch from 4845961 to 9fc8cb9 Compare August 5, 2026 09:22

@AaronHForgeFlow AaronHForgeFlow left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code + Functional all changes LGTM

@AaronHForgeFlow
AaronHForgeFlow marked this pull request as ready for review August 6, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:project_task_code Module project_task_code series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants