Openbravo Issue Tracking System - POS2
View Issue Details
0049355POS2POSpublic2022-05-18 16:242022-05-20 00:27
AugustoMauch 
AugustoMauch 
normalcriticalhave not tried
closedfixed 
5
 
 
No
0049355: When editing a keymap on the WebPOS, the changes are not being sent to the backend
When using the Keymap Editor window in WebPOS to update a keymap, a request should be done to the KeymapLoader endpoint so that the changes are stored in the backend.

Currently that request is not taking place and as a result the changes are not saved in the backend.

- Open WebPOS
- Open the Keymap Editor window
- Click on the View Versions button of the Main App Keymap
- Click on the View Categories button of the version v1
- Click on the View Products button of the Backpacks & Travels category
- Click on Link Product
- In the popup that opens click on any product, then click on the Add button
- Open the Devtools and click on the Save button. Notice that no request was done to the backend. If you check the keymap definition in the backend, it will not contain the latest changes done in the WebPOS app.
No tags attached.
Issue History
2022-05-18 16:24AugustoMauchNew Issue
2022-05-18 16:24AugustoMauchAssigned To => AugustoMauch
2022-05-18 16:24AugustoMauchTriggers an Emergency Pack => No
2022-05-18 16:24AugustoMauchStatusnew => scheduled
2022-05-18 16:27hgbotNote Added: 0137439
2022-05-20 00:27hgbotResolutionopen => fixed
2022-05-20 00:27hgbotStatusscheduled => closed
2022-05-20 00:27hgbotNote Added: 0137550
2022-05-20 00:27hgbotNote Added: 0137551

Notes
(0137439)
hgbot   
2022-05-18 16:27   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/964 [^]
(0137550)
hgbot   
2022-05-20 00:27   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 852490e847bdbf6353e34ae37e4d3a90fcf2423f
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 20-05-2022 00:26:43
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/852490e847bdbf6353e34ae37e4d3a90fcf2423f [^]

Fixes ISSUE-49355: The saveKeymap state action should not be async

The saveKeymap function that updates the state was accidentally configured as async. As a result,
instead of returning an object it was returning a promise, and that resulted in the request to the
backend not being sent

---
M web-jspack/org.openbravo.pos2/src/model/global/actions/SaveKeymap.js
---
(0137551)
hgbot   
2022-05-20 00:27   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/964 [^]