Skip to content

[18.0][ADD] project_sequence_type: per-type project sequence#1737

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

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

Conversation

@dnplkndll
Copy link
Copy Markdown

Back-port of project_sequence_type from 19.0 (#1736).

New glue module bridging 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, while types with no sequence — and projects with no type — keep using
the global project.sequence. 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 — preserving its default-name logic and never overriding an
    explicit sequence_code. (Identical to 19.0; the 18.0 base modules share the
    same create semantics and view structure.)

@OCA-git-bot OCA-git-bot added series:18.0 mod:project_sequence_type Module project_sequence_type labels May 28, 2026
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 18.0-add-project_sequence_type branch from 1c8150e to 5aa91c7 Compare May 28, 2026 21:37
@dnplkndll dnplkndll marked this pull request as ready for review May 28, 2026 23:03
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:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants