From a7069b51e59152f7ebb1a41e9fb68b6e188f2add Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Wed, 1 Nov 2023 15:29:58 -0400 Subject: [PATCH] Fix: Column `Business Partner` on `Project` window is not displayed. (#1585) * Fix: Columna SDN en Ventana de Proyectos no se visualiza solop-develop/frontend-core#1583 * minimal changes * Update index.vue --- .../ADempiere/DataTable/Windows/index.vue | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/components/ADempiere/DataTable/Windows/index.vue b/src/components/ADempiere/DataTable/Windows/index.vue index 587354d0228..f99ddce2263 100644 --- a/src/components/ADempiere/DataTable/Windows/index.vue +++ b/src/components/ADempiere/DataTable/Windows/index.vue @@ -205,19 +205,16 @@ export default defineComponent({ }) const headerList = computed(() => { - return props.header.filter(fieldItem => { - if (props.containerManager.isDisplayedColumn(fieldItem)) { - // const isMandatoryGenerated = props.containerManager.isMandatoryColumn(fieldItem) - // const isDisplayedDefault = props.containerManager.isDisplayedDefaultTable({ - // ...fieldItem, - // isMandatory: isMandatoryGenerated - // }) - // if (isDisplayedDefault) { - // return true - // } - return fieldItem.isShowedTableFromUser - } - return false + return props.containerManager.getFieldsToHidden({ + parentUuid: props.parentUuid, + containerUuid: props.containerUuid, + fieldsList: props.containerManager.getFieldsList({ + parentUuid: props.parentUuid, + containerUuid: props.containerUuid + }), + isTable: true + }).filter(itemField => { + return itemField.isShowedTableFromUser }) })