Skip to content

[19.0][FIX] base_tier_validation_forward: keep comments of forwarded reviews - #103

Open
Pani-k-folk wants to merge 1 commit into
OCA:19.0from
ecosoft-odoo:19.0-fix-base_tier_validation_forward-comment
Open

Pani-k-folk wants to merge 1 commit into
OCA:19.0from
ecosoft-odoo:19.0-fix-base_tier_validation_forward-comment

Conversation

@Pani-k-folk

@Pani-k-folk Pani-k-folk commented Oct 15, 2026 •

Copy link
Copy Markdown

Problem

When a forwarded review is forwarded again, the comments of the earlier forwarded reviews are overwritten.

Steps to reproduce:

  1. A tier definition with Allow Forward; user A is the reviewer.
  2. A forwards to B. A's review: forwarded, comment >> B.
  3. B forwards to C. A's review comment becomes >> C (expected: still >> B).

Fix

forward_tier only passes the current user's pending review to the comment wizard, the same filter validate_tier uses.

Tests

New test_04_forward_a_forwarded_review: A → B → back to A → C, then C approves. It checks that each forwarded review keeps its own >> next reviewer comment. Fails before the fix, passes after.

Notes

AI disclosure

Assisted-by: Claude Opus 5.5 (changes were reviewed and tested by me)

A forwarded review and the review created for the next reviewer share
the same sequence. Forwarding again sent all reviews of that sequence to
the comment wizard, which overwrote the comment of every earlier
forwarded review with the new '>> reviewer' text. Only take the current
user's pending review, as validate_tier does.

Assisted-by: Claude Opus 5.5
@Pani-k-folk
Pani-k-folk force-pushed the 19.0-fix-base_tier_validation_forward-comment branch from 5dd6d3b to 7f45b1b Compare October 15, 2026 04:55
@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 mod:base_tier_validation_forward Module base_tier_validation_forward series:19.0 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_forward Module base_tier_validation_forward series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants