-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
[16.0][IMP] base_custom_filter: add search feature #666
Conversation
Hi @ForgeFlow, @AshishHirapara, |
9781791
to
9bf73f1
Compare
9bf73f1
to
c8199be
Compare
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.
Code review and functional test.
<field | ||
name="group_id" | ||
domain="[('model_id', '=', model_id), ('type', '=', type)]" | ||
context="{'default_model_id': model_id, 'default_type': type}" | ||
attrs="{'invisible': [('type', '=', 'favorite')]}" | ||
attrs="{'invisible': [('type', 'in', ['favorite', 'search'])]}" | ||
/> | ||
</field> | ||
<field name="domain" position="attributes"> |
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.
Can we hide domain field for the search type as well? The widget doesn't work in the way it should unless we tweak a bit so that it looks at the model of the selected field, and this attribute is rarely used anyway.
|
||
* Search Field (``name``) | ||
* Filter Domain (``filter_domain``) | ||
* Domain (``domain``) |
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.
* Domain (``domain``) |
1b70601
to
77b4d60
Compare
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.
Thank you. LGTM. 👍
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.
Function review👍
@OCA/tools-maintainers Can we please get this PR merged? |
77b4d60
to
217b99e
Compare
217b99e
to
14d3372
Compare
/ocabot merge minor |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 3b04863. Thanks a lot for contributing to OCA. ❤️ |
This PR incorporates a search feature into custom filters, allowing users to search using fields within a model's view. Additionally, it introduces a group_ids field to manage the visibility of custom filters for different users.
@qrtl