-
- Downloads
[FIX] point_of_sale: make sure cash moves are not duplicated
Current behavior:
When your connection is slow and you try to create a cash move, and you
click multiple times on the confirm button. The cash move is created
multiple times.
This happens because the function is not locked while the asynchronous
call is not finished. To fix this we added a custom hook to lock the
function while the asynchronous call is not finished.
Steps to reproduce:
-Open the POS
-Press F12 and in the network tab of the developper tools, set the
connection to slow 3G
-Open the cash move popup, enter an amount and click on confirm multiple
times.
-Close the session, and check the cash moves created.
opw-3431775
closes odoo/odoo#130735
Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
Showing
- addons/point_of_sale/static/src/js/Popups/CashMovePopup.js 2 additions, 1 deletionaddons/point_of_sale/static/src/js/Popups/CashMovePopup.js
- addons/point_of_sale/static/src/js/Screens/PartnerListScreen/PartnerListScreen.js 2 additions, 1 deletion...tic/src/js/Screens/PartnerListScreen/PartnerListScreen.js
- addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js 2 additions, 1 deletion...sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js
- addons/point_of_sale/static/src/js/custom_hooks.js 17 additions, 2 deletionsaddons/point_of_sale/static/src/js/custom_hooks.js
Loading
Please register or sign in to comment