Skip to content

[18.0][FIX] base_tier_validation: prevent error when trying to access review_ids in a one2many#1171

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
celm1990:18.0-fix-base_tier_validation_one2many
Oct 16, 2025
Merged

[18.0][FIX] base_tier_validation: prevent error when trying to access review_ids in a one2many#1171
OCA-git-bot merged 1 commit into
OCA:18.0from
celm1990:18.0-fix-base_tier_validation_one2many

Conversation

@celm1990
Copy link
Copy Markdown
Contributor

When the validations are in a model that is inside another model(some custom module), after the reviews are approved, trying to open the one2many raises an error. This commit ensures that the value is taken from the correct record instead of env.model.root, which represents the main model and not the model that inherits tier.validation.

image

@pedrobaeza could you review this please?

…w_ids in a one2many

When the validations are in a model that is inside another model, after the reviews are approved, trying to open the one2many raises an error. This commit ensures that the value is taken from the correct record instead of env.model.root, which represents the main model and not the model that inherits tier.validation.
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@pedrobaeza pedrobaeza added this to the 18.0 milestone Oct 16, 2025
Copy link
Copy Markdown
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Seems reasonable.

Copy link
Copy Markdown
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-1171-by-LoisRForgeFlow-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 5590a6c into OCA:18.0 Oct 16, 2025
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@celm1990 celm1990 deleted the 18.0-fix-base_tier_validation_one2many branch October 16, 2025 20:26
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.

4 participants