Skip to content

[19.0][FIX] base_tier_validation: bypass approval only for consecutive tiers - #36

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
bosd:19.0-fix-base_tier_validation-bypass-consecutive-tiers
Jul 23, 2026
Merged

[19.0][FIX] base_tier_validation: bypass approval only for consecutive tiers#36
OCA-git-bot merged 1 commit into
OCA:19.0from
bosd:19.0-fix-base_tier_validation-bypass-consecutive-tiers

Conversation

@bosd

@bosd bosd commented May 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Forward-port of OCA/server-ux#1141 (authored by @Saran440 / Ecosoft) onto 19.0.

approve_sequence_bypass is supposed to skip a tier's approval only when the previous (consecutive) tier was already validated by the same reviewer. The current logic instead bypasses whenever the same reviewer appears anywhere in the earlier tiers — even with gaps. With multi-tier workflows where the same person sits on tier 1 and tier 3 but a third party owns tier 2, that lets the workflow auto-approve tier 3 the moment tier 1 is signed, before tier 2 even gets a chance.

This forward-port restricts the bypass to the immediately previous sequence so non-consecutive overlaps no longer auto-approve.

Credit

Original commit: 48049458 by @Saran440 / Ecosoft. Cherry-picked unchanged onto 19.0; the surrounding code was identical to 18.0 so no resolution was needed.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @LoisRForgeFlow,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added mod:base_tier_validation Module base_tier_validation series:19.0 labels May 14, 2026
@bosd
bosd force-pushed the 19.0-fix-base_tier_validation-bypass-consecutive-tiers branch from 2d6d31c to acfaa9d Compare July 22, 2026 23:05

@Saran440 Saran440 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code Review 👍

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@LoisRForgeFlow LoisRForgeFlow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense 👍

@LoisRForgeFlow

Copy link
Copy Markdown
Contributor

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-36-by-LoisRForgeFlow-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit eebb3e1 into OCA:19.0 Jul 23, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 6190b24. Thanks a lot for contributing to OCA. ❤️

@bosd
bosd deleted the 19.0-fix-base_tier_validation-bypass-consecutive-tiers branch July 23, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants