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

Master odoo.filter.value dates lul #162078

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

LucasLefevre
Copy link
Contributor

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

The key `rangeType` has no effect with `setGlobalFilterValue`
but is required by `addGlobalFilter` for date filters.
Extract the code for date filter in a dedicated
method.
use a switch/case statement to handle the different
range types instead of ifs based on the type of the value.

It's easier to read.
@robodoo
Copy link
Contributor

robodoo commented Apr 16, 2024

@C3POdoo C3POdoo added the RD research & development, internal work label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants