Skip to content

[18.0][FIX] base_tier_validation: make ReviewsTable widget work with manual config #1117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

MaxyMoos
Copy link
Contributor

@MaxyMoos MaxyMoos commented Jul 2, 2025

Forward-port of #1093 , since the original issue can be reproduced in v18 too.

config

When an Odoo model inherits from `tier.validation` but sets up
`_tier_validation_manual_config = True`, adding `review_ids` in a form
view with the `tier_validation` widget causes Owl errors.

It appears that the Tier Review fields are then not passed to the Owl
framework, and accessing them in the widget template raises exceptions.

Adding the fields used in the `base_tier_validation.Collapse` template
to the component under the `relatedFields` key fixes this, while not
changing the behavior for models using `_tier_validation_manual_config =
False`.
@OCA-git-bot
Copy link
Contributor

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

@MaxyMoos MaxyMoos changed the title [FIX] base_tier_validation: make ReviewsTable widget work with manual config [18.0][FIX] base_tier_validation: make ReviewsTable widget work with manual config Jul 2, 2025
Copy link
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.

Thanks for helping to keep versions aligned 👍

@LoisRForgeFlow
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 5de0723 into OCA:18.0 Jul 2, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

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.

3 participants