-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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][FIX] sale_order_product_picker: Changes not saved when line is already saved #2796
[16.0][FIX] sale_order_product_picker: Changes not saved when line is already saved #2796
Conversation
cc624f4
to
25fe2d5
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.
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.
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.
The problem with this fix is that it turns the button slower.
For example, if you want to add 3 units and click the button 3 times quickly, chances are that only 1 or 2 of those clicks are actually handled.
I think it would make sense to throttle and defer the calls, and only when the user has stopped clicking for about 500ms, then upload the changes. Does that make sense?
Otherwise, at least it would help if the button appears as disabled while you can't use it. That visual feedback isn't the best, but at least gives a hint that you have to wait to click more.
Hi @CarlosRoca13. Have you been able to review #2796 (review)? Any thoughts about it? |
Yes it's true, that some clicks are lost, but right now I have no chance to make the change, sorry 🙏 I will review it when I have a chance |
OK, let's merge. The new bug is better than the older one. I'll open a new issue about the new bug, so we can track it. /ocabot merge patch |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at cbe3ece. Thanks a lot for contributing to OCA. ❤️ |
New issue opened in #2842 |
This PR solves the issue reported on #2794
cc @Tecnativa
ping @yajo @rafaelbn