Skip to content
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

Merged
merged 2 commits into from
Dec 9, 2023

Conversation

AungKoKoLin1997
Copy link
Contributor

@AungKoKoLin1997 AungKoKoLin1997 commented Jun 16, 2023

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

@OCA-git-bot
Copy link
Contributor

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

@AungKoKoLin1997 AungKoKoLin1997 marked this pull request as draft June 16, 2023 10:12
@AungKoKoLin1997 AungKoKoLin1997 marked this pull request as ready for review June 16, 2023 10:19
@AungKoKoLin1997 AungKoKoLin1997 changed the title [IMP] base_custom_filter: add search feature [16.0][IMP] base_custom_filter: add search feature Jun 16, 2023
Copy link
Member

@yostashiro yostashiro left a 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">
Copy link
Member

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``)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Domain (``domain``)

Copy link
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

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

Thank you. LGTM. 👍

Copy link

@kanda999 kanda999 left a comment

Choose a reason for hiding this comment

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

Function review👍

@AungKoKoLin1997
Copy link
Contributor Author

@OCA/tools-maintainers

Can we please get this PR merged?

@dreispt
Copy link
Member

dreispt commented Dec 9, 2023

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-666-by-dreispt-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit a4b174f into OCA:16.0 Dec 9, 2023
4 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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