[19.0][IMP] project_task_code: per-project task name display - #1786
Open
JasminSForgeFlow wants to merge 1 commit into
Open
[19.0][IMP] project_task_code: per-project task name display#1786JasminSForgeFlow wants to merge 1 commit into
JasminSForgeFlow wants to merge 1 commit into
Conversation
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
force-pushed
the
19.0-imp-project_task_code
branch
from
August 5, 2026 09:22
4845961 to
9fc8cb9
Compare
AaronHForgeFlow
approved these changes
Aug 6, 2026
AaronHForgeFlow
left a comment
There was a problem hiding this comment.
Code + Functional all changes LGTM
AaronHForgeFlow
marked this pull request as ready for review
August 6, 2026 13:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Task Name Display setting on the project, choosing how its tasks are identified:
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:
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.