-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[FIX] web_domain_field: Accept empty domain #3403
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
base: 14.0
Are you sure you want to change the base?
[FIX] web_domain_field: Accept empty domain #3403
Conversation
Marco-ooops
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test funzionale ok
55eaecd to
4c0bd76
Compare
Steps: 1. Create a domain field that contains `False` 2. Associate the created field to a relational field 3. In a form view, open the dropdown of the filtered relational field Before this change: The following client error is raised: > Error: second argument to Function.prototype.apply must be an array eval_domains/<@https://domain.com/web_domain_field/static/lib/js/pyeval.js:156:40 [...] After this change: All the records can be selected
4c0bd76 to
1ee5763
Compare
jappi00
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nitpick but functional and code looks good.
| margin-left: 2em ; | ||
| margin-right: 2em } | ||
|
|
||
| pre.code .ln { color: grey; } /* line numbers */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: css supports both: american an english. I think we do not need a change here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
This change was done automatically by pre-commit so I'd leave it as it is right now.
I think it was somehow generated by https://github.com/OCA/maintainer-tools/blob/71aa4caec15e8c1456b4da19e9f39aa0aa7377a9/tools/gen_addon_readme.py but I can't find where, it is probably some change in some dependency.
jappi00
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't click on approve before. Sorry.
|
@OCA/web-maintainers can this be merged? thanks! |
Steps:
FalseBefore this change:
The following client error is raised:
After this change:
All the records can be selected
Additional context:
Fixes #882 that is closed because stale, not because it is fixed.
I struggled to add a test that fails without this change (as the UI does), but failed: the added test succeeds without this change too.If anyone can help make the test fail without this change, it is much appreciated! Otherwise, at least we have added a test to the module.
The added test fails without this change.
For anyone who is interested:
clicking on the dropdown does not open it, butclicking on the field label does.