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][FIX] sale_order_product_picker: Changes not saved when line is already saved #2796

Closed

Conversation

CarlosRoca13
Copy link
Contributor

This PR solves the issue reported on #2794

cc @Tecnativa

ping @yajo @rafaelbn

@yajo
Copy link
Member

yajo commented Nov 22, 2023

@rafaelbn @Gelojr please review. @moduon MT-3930

@yajo yajo added this to the 16.0 milestone Nov 22, 2023
@yajo yajo added the bug label Nov 22, 2023
@yajo yajo requested a review from rafaelbn November 22, 2023 08:35
Copy link
Contributor

@Gelojr Gelojr left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@Shide Shide left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@yajo yajo left a 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.

@yajo
Copy link
Member

yajo commented Nov 27, 2023

Hi @CarlosRoca13. Have you been able to review #2796 (review)? Any thoughts about it?

@CarlosRoca13
Copy link
Contributor Author

CarlosRoca13 commented Nov 27, 2023

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

@rafaelbn
Copy link
Member

rafaelbn commented Dec 11, 2023

@yajo could we merge this as is and later propose a new PR? O better to propose a new PR directly?

I would like to close this task 😄

#2796

@moduon MT-4423

@yajo
Copy link
Member

yajo commented Dec 11, 2023

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

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-2796-by-yajo-bump-patch, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Dec 11, 2023
Signed-off-by yajo
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at cbe3ece. Thanks a lot for contributing to OCA. ❤️

@yajo
Copy link
Member

yajo commented Dec 11, 2023

New issue opened in #2842

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.

[16.0] sale_order_product_picker: cannot use to edit qtys, after saving for the 1st time
6 participants