Openbravo Issue Tracking System - POS2
View Issue Details
0052714POS2Fashionpublic2023-06-09 13:322023-06-19 17:54
joanborras 
Retail 
normalminoralways
closedfixed 
5
 
 
No
0052714: Columns cannot be shown or hide in a pick and execute window when a relevant characteristic column is part of the fields shown
It's not possible to show or hide columns on a pick and execute window when some relevant characteristic property fields are part of the columns to be shown.
On a Retail environment install "Retail for Fashion" module
1. Go to The White Valley Client and set attributes "Color" and "Size" as relevant 2. characteristics with the same name
3. On your own module , Edit "Offer Product Selector" windown and add the
   following properties: oBFASHColor and oBFASHSize
4. After compiling and restart the environment Open "Discounts and promotions" and click on "Add products" button
5. Open Google Developer Console
5. Try to hide or show some columns, nothing happens and the following message is shown on the console:

ISC_Combined.js:1411 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at _2.getFKFilterAuxiliaryCache (a59690739fce680d0257d2d9f9069322.js:32009:40)
    at _2.setFields (a59690739fce680d0257d2d9f9069322.js:31982:31)
    at _2.isc_ListGrid_hideField [as hideField] (ISC_Combined.js:5426:30)
    at Object.click (ISC_Combined.js:6782:335)
    at _2.isc_Menu_selectMenuItem [as selectMenuItem] (ISC_Combined.js:7270:45)
    at _2.isc_Menu_rowClick [as rowClick] (ISC_Combined.js:7263:148)
    at _2.eval [as rowClick] (eval at isc__makeFunction (ISC_Combined.js:45:122), <anonymous>:3:115)
    at _2.isc_GridRenderer__rowClick [as $29y] (ISC_Combined.js:5046:183)
    at _2.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Combined.js:245:93)
    at _2.isc_c_Class_Super [as Super] (ISC_Combined.js:237:170)
To hide or show the desired columns
No tags attached.
related to feature request 0049838 closed caristu Openbravo ERP Relevant product characteristics property fields 
Issue History
2023-06-09 13:32joanborrasNew Issue
2023-06-09 13:32joanborrasAssigned To => Retail
2023-06-09 13:32joanborrasTriggers an Emergency Pack => No
2023-06-09 13:35hgbotNote Added: 0150993
2023-06-19 17:53hgbotResolutionopen => fixed
2023-06-19 17:53hgbotStatusnew => closed
2023-06-19 17:53hgbotFixed in Version => PR23Q3
2023-06-19 17:53hgbotNote Added: 0151330
2023-06-19 17:53hgbotNote Added: 0151331
2023-06-19 17:54caristuRelationship addedrelated to 0049838

Notes
(0150993)
hgbot   
2023-06-09 13:35   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/908 [^]
(0151330)
hgbot   
2023-06-19 17:53   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 42c7b76bfadad2539c80f150612f2ad76ac32a88
Author: Joan Borras | Practics BS <joan.borras@practicsbs.com>
Date: 19-06-2023 15:53:33
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/42c7b76bfadad2539c80f150612f2ad76ac32a88 [^]

Fixes BUG-52714: Cannot hide or show P&E grid fields having relevant characteristic fields

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
---
(0151331)
hgbot   
2023-06-19 17:53   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/908 [^]