Skip to content

[19.0][FIX] base_tier_validation_correction: revert message lists restored reviewers only - #102

Open
twtrubiks wants to merge 1 commit into
OCA:19.0from
twtrubiks:19.0-fix-base_tier_validation_correction-revert-message
Open

twtrubiks wants to merge 1 commit into
OCA:19.0from
twtrubiks:19.0-fix-base_tier_validation_correction-revert-message

Conversation

@twtrubiks

Copy link
Copy Markdown

Fixes #101

When a correction is reverted, the message on the document listed the reviewers of all the reviews of the item, including reviews approved after the correction, which the revert leaves untouched. A document approved by the new reviewer then said it was reverted "back to" that reviewer.

The correction and revert messages now only list the reviews actually changed, and the reviewers they were set to. Nothing is posted when no review was changed.

Two new tests: one with an approved and a pending review, one where every review was approved. Both fail without the fix.

…reviewers only

The correction and revert messages listed the reviewers of all the reviews
of the item, including reviews approved in the meantime and left untouched.
Only list the reviews actually changed, and post nothing when none was.

Fixes OCA#101
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@OCA-git-bot OCA-git-bot added series:19.0 mod:base_tier_validation_correction Module base_tier_validation_correction labels Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:base_tier_validation_correction Module base_tier_validation_correction series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[19.0] base_tier_validation_correction: revert message names the reviewer of already approved reviews

2 participants