-
-
Notifications
You must be signed in to change notification settings - Fork 671
[FIX]pos_partner_birthdate: fixed the issue of if we have a lot of customers and we search a customer using the birthdate with the button search more, result not found. #1329
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: 17.0
Are you sure you want to change the base?
Conversation
|
Hi @ecino, |
3249a1f to
d4598fe
Compare
|
cc @vehi-invitu |
|
thanks for the PR, we tested here in french at GMT-10 and with several format input (ddmmyyyy or dd/mm/yyyy), it doesn't seem to work as expected As example @etobella did it like this
and it works well with the classical search |
3ed02fd to
a74d7c8
Compare
cvinh
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.
works as expected
vehi-invitu
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.
I tested it and it works as expected.
|
This PR has the |
etobella
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, suggestion, why don't you ask Odoo to add a hook in order to modify the domain filter? this way, you don't need to have this big change.
I made other PRs asking for hooks and they accepted it without an issue:
odoo/odoo#150914
|
|
Maybe we can merge this one and wait for odoo/odoo#202641 to improve it |
|
@legalsylvain WDYT on that one please ? |
|
please @parvezqureshi can you rebase because of runboat ? |
…stomers and we search a customer using the birthdate with the button search more, result not found.
a74d7c8 to
b564757
Compare
Rebased |
PR has been rejected by Odoo and I proposed to do a PR to OCB... In that case, this fix will only work with OCB... or we can merge as it is... and improve it in next version |
|
Odoo answered this part has been changed in further versions, so we can merge this and then improve in next versions |
|
I wouldn't have a problem merging like this, but please add some comments mentioning we're fully overwriting the core method and why. Add comments before and after the modified lines to make it easier for devs working in future migrations to identify the actual patch. Alternatively, there's a way to do this without a complete overwrite. It's not as clean as if Odoo had a hook method, but it works just fine: you can temporarily monkey-patch the |
|
Hey @parvezqureshi than you for your contribution! Could you please check the comments and resolve them? |
#1328