Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0046297 | POS2 | POS | public | 2021-04-19 18:05 | 2021-05-01 12:06 |
|
Reporter | javietxe | |
Assigned To | cberner | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0046297: Posthooks using SelectCurrentSchema User-Action |
Description | In several posthooks are calling the SelectCurrentSchema user-action instead of calling the method itself.
It does that some times, depending on the configuration, the user cannot finish some actions that he has access, for example a payment. |
Steps To Reproduce | Go to the backoffice.
Select the default role of vallblanca.
In the user-action access tab, set the SelectCurrentSchema to "Approval Required".
Log in the POS2 with vallblanca.
Create an order
Pay it.
Finish in Done-> Check that the approval is being required. |
Proposed Solution | |
Additional Information | |
Tags | Takeaway |
Relationships | depends on | backport | 0046440 | TAP | closed | cberner | Posthooks using SelectCurrentSchema User-Action |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2021-04-19 18:05 | javietxe | New Issue | |
2021-04-19 18:05 | javietxe | Assigned To | => Retail |
2021-04-19 18:05 | javietxe | Triggers an Emergency Pack | => No |
2021-04-19 18:11 | hgbot | Note Added: 0127374 | |
2021-04-19 18:23 | cberner | Assigned To | Retail => cberner |
2021-04-19 18:23 | cberner | Status | new => scheduled |
2021-04-22 23:05 | guilleaer | Tag Attached: Takeaway | |
2021-04-22 23:26 | guilleaer | Resolution time | => 1619992800 |
2021-04-30 13:18 | cberner | Status | scheduled => acknowledged |
2021-04-30 13:18 | cberner | Status | acknowledged => scheduled |
2021-05-01 12:06 | hgbot | Note Added: 0127704 | |
2021-05-01 12:06 | hgbot | Resolution | open => fixed |
2021-05-01 12:06 | hgbot | Status | scheduled => closed |
2021-05-01 12:06 | hgbot | Note Added: 0127705 | |
Notes |
|
(0127374)
|
hgbot
|
2021-04-19 18:11
|
|
|
|
(0127704)
|
hgbot
|
2021-05-01 12:06
|
|
|
|
(0127705)
|
hgbot
|
2021-05-01 12:06
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 7daf23ae38a0ab4be3b71d078c49e88670435d9c
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 2021-05-01T11:18:14+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/7daf23ae38a0ab4be3b71d078c49e88670435d9c [^]
Fixes ISSUE-46297: Posthooks using SelectCurrentSchema UserAction fail if approval/confirmation is required
Those posthooks will put the application in a strage state if the
approval of SelectCurrentSchema is not accepted, which should not be
required in those cases, as the Posthook is trying to select a schema
programmatically and should not follow the same flow as when a user
launches the SelectCurrentSchema user-action manually.
The fix will skip approval and confirmation in those cases.
Also, as part of this changes, this posthook that Selects the current
schema has been marked with priority 9999 to always be executed in the
last place. This way, if it fails for whatever reason, it will not block
the other posthooks. The current use case of this posthook is to change to
the main window and add product flow, as such, it should be the last
step of a those user actions.
---
M web-jspack/org.openbravo.pos2/src/model/quotation/user-actions/NewQuotation.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/CancelTicket.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/CompleteTicket.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/CreateCancelTicket.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/DeleteTicket.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/LoadLocalTicket.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/LoadRemoteTicket.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/NewTicket.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/ReplaceTicket.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/ReturnBlindTicket.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/ReturnVerifiedTicket.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/SelectCurrentSchema.js
---
|
|