Openbravo Issue Tracking System - POS2
View Issue Details
0050163POS2POSpublic2022-09-06 08:212022-09-12 14:45
gonzalo_fernandez 
gonzalo_fernandez 
normalmajorhave not tried
closedfixed 
5
 
22Q4 
No
0050163: Enable a specific user action for ProductButtons related to generic products in keymaps
The ProductKeymap component renders instances of ProductButton. It does not include a leftAction property so the default one (OBPOS2_AddProduct) is always used.

It would be useful if a specific leftAction could be selected based on the product isGeneric property. The ProductButtons that have this property as true would execute an action that would not add the product to the ticket but instead show in the search dialog all its product variants.

In this feature, using the infrastructure developed for the ISSUE-50102, the implementation of the specific leftAction for generic products is required. It is worth noting that we already count with the technical design [1] of this project.

[1] https://docs.google.com/document/d/1lI5dJu8_rb5iaXVbJplXfyqhoCSbcO9Y3N8-oqGfbnc [^]
-
No tags attached.
Issue History
2022-09-06 08:21gonzalo_fernandezNew Issue
2022-09-06 08:21gonzalo_fernandezAssigned To => gonzalo_fernandez
2022-09-06 08:21gonzalo_fernandezTriggers an Emergency Pack => No
2022-09-06 08:37AugustoMauchStatusnew => scheduled
2022-09-06 08:53hgbotNote Added: 0140736
2022-09-12 14:45hgbotNote Added: 0141026
2022-09-12 14:45hgbotResolutionopen => fixed
2022-09-12 14:45hgbotStatusscheduled => closed
2022-09-12 14:45hgbotFixed in Version => 22Q4
2022-09-12 14:45hgbotNote Added: 0141027

Notes
(0140736)
hgbot   
2022-09-06 08:53   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1182 [^]
(0141026)
hgbot   
2022-09-12 14:45   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1182 [^]
(0141027)
hgbot   
2022-09-12 14:45   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: ddbad9da49f19068949686d3899470f0338b62b9
Author: Gonzalo Fernández García <gonzalo.fernandez@openbravo.com>
Date: 12-09-2022 14:44:16
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/ddbad9da49f19068949686d3899470f0338b62b9 [^]

Fixes ISSUE-50163: Enable specific leftAction for generic products ProductButtons

With this change, ProductButtons with the flag isGeneric will execute a different action (showing the associated variant products) rather than the default AddProduct one.

---
A web-jspack/org.openbravo.pos2/src/components/Service/GetVariantProductsFilter.js
A web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/ApplyVariantProductsFilter.test.js
A web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/ApplyVariantProductsFilter.js
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.pos2/src/authentication/loginInitActions.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/RestoreAddProductModeFromProductSearch.test.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/actions/productSearch/restoreAddProductModeFromProductSearch.js
M web-jspack/org.openbravo.pos2/src/ob-init.js
---