[19.0][ADD] project_sequence_type: per-type project sequence#1736
Open
dnplkndll wants to merge 1 commit into
Open
[19.0][ADD] project_sequence_type: per-type project sequence#1736dnplkndll wants to merge 1 commit into
dnplkndll wants to merge 1 commit into
Conversation
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.
a5932cb to
75fa5f9
Compare
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.
New glue module that bridges
project_sequenceandproject_typeso eachproject 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 onproject.type. Projects of atype take their
sequence_codefrom that sequence; types with no sequence —and projects with no type — keep using the global
project.sequence. It isauto_install, so it activates only when both base modules are present.Non-mechanical adaptations worth flagging
project.project.create()pre-fillssequence_codefrom the type'ssequence before
super(), mirroringproject_sequence's own"only when the key is absent" guard. This keeps
project_sequence'sdefault-name logic intact and never overrides an explicit
sequence_code.