Skip to content

[19.0][ADD] project_sequence_type: per-type project sequence#1736

Open
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-add-project_sequence_type
Open

[19.0][ADD] project_sequence_type: per-type project sequence#1736
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-add-project_sequence_type

Conversation

@dnplkndll
Copy link
Copy Markdown

New glue module that bridges project_sequence and project_type so each
project type can have its own sequence — answering the recurring "I need a
different sequence per project type" request.

It adds a sequence_id (ir.sequence) field on project.type. Projects of a
type take their sequence_code from that sequence; types with no sequence —
and projects with no type — keep using the global project.sequence. It is
auto_install, so it activates only when both base modules are present.

Non-mechanical adaptations worth flagging

  • project.project.create() pre-fills sequence_code from the type's
    sequence before super(), mirroring project_sequence's own
    "only when the key is absent" guard. This keeps project_sequence's
    default-name logic intact and never overrides an explicit sequence_code.

@OCA-git-bot OCA-git-bot added series:19.0 mod:project_sequence_type Module project_sequence_type labels May 28, 2026
@dnplkndll dnplkndll marked this pull request as ready for review May 28, 2026 23:03
Glue module (auto-installing with project_sequence + project_type) that
lets each project.type point at its own ir.sequence. Projects of that
type take their sequence_code from it; types with no sequence, and
projects with no type, keep using the global project.sequence.
@dnplkndll dnplkndll force-pushed the 19.0-add-project_sequence_type branch from a5932cb to 75fa5f9 Compare May 29, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:project_sequence_type Module project_sequence_type series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants