Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0046297 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] POS | major | have not tried | 2021-04-19 18:05 | 2021-05-01 12:06 | |||
Reporter | javietxe | View Status | public | |||||
Assigned To | cberner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
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. | |||||||
Tags | Takeaway | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0127374) hgbot (developer) 2021-04-19 18:11 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/400 [^] |
(0127704) hgbot (developer) 2021-05-01 12:06 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/400 [^] |
(0127705) hgbot (developer) 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 --- |
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 |
Copyright © 2000 - 2009 MantisBT Group |