8000 [18.0][FIX]: web_widget_x2many_2d_matrix: limit options values to x2m… by jcadhoc · Pull Request #3200 · OCA/web · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[18.0][FIX]: web_widget_x2many_2d_matrix: limit options values to x2m… #3200

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

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

jcadhoc
Copy link
Contributor
@jcadhoc jcadhoc commented Jun 18, 2025

…any fields.

Improve proposed by @DavidJForgeFlow.

Already merged in 17.0

@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza
Copy link
Member

Why this limit?

@DavidJForgeFlow
Copy link
Contributor

Because we only tested modules with the changes in the options into many2one fields. And in the original PR I was fixing an error caused by a many2many field getting attributes it won't support. Limiting the options to many2one ensures that no other field type would be affected and, if in a future someone needs this to work on any other type, can simply test and include the type in the method.

@pedrobaeza pedrobaeza added this to the 18.0 milestone Jun 19, 2025
@pedrobaeza
Copy link
Member

@hbrunn should say if this limitation was something in mind when he created the module.

@DavidJForgeFlow
Copy link
Contributor

The options feature in v17 and ahead was included by myself and it was only taken into account to many2one fields. I agree that maybe original intention by @hbrunn was getting all the field attributes included by default (as it was happening after the migration to OWL). If his intention is to have all field types being able to get options, first someone would need to adapt how the matrix fields get all the attributes as right now only takes the ones we tested to be able to get. So maybe we could create an issue to don't loose any track of this and as this same features are already in v17.0 we could go ahead with this, what do you think @pedrobaeza ?

@pedrobaeza
Copy link
Member

OK on my side.

@pedrobaeza
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-3200-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 0215430 into OCA:18.0 Jun 19, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 9129bee. 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.

5 participants
0