From fe00a090b5636102125d752f5d7a6bea31b1782c Mon Sep 17 00:00:00 2001 From: Ricardo Fenomeno <78000356+Ricargame@users.noreply.github.com> Date: Mon, 4 Nov 2024 10:18:57 -0400 Subject: [PATCH] Fix: Size Column Table Window (#2919) * Fix: Size Column Table Windown * Fix: Size Column Table Windown --- src/components/ADempiere/DataTable/Windows/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/ADempiere/DataTable/Windows/index.vue b/src/components/ADempiere/DataTable/Windows/index.vue index c2ab781f71..b2c4bc061f 100644 --- a/src/components/ADempiere/DataTable/Windows/index.vue +++ b/src/components/ADempiere/DataTable/Windows/index.vue @@ -619,9 +619,15 @@ export default defineComponent({ } function widthColumn(fieldAttributes) { - const { name, display_type } = fieldAttributes + const { name, display_type, columnName } = fieldAttributes const size = 8 const lenght = name.length + if (['C_BPartner_ID', 'C_Project_ID', 'C_BankAccount_ID'].includes(columnName)) { + return 300 + } + if (columnName === 'M_Product_ID') { + return 400 + } const sum = (lenght * size) + 50 if (isBooleanField(display_type)) { if (sum < 140) return 140 @@ -648,7 +654,6 @@ export default defineComponent({ loadSelection() } }) - watch(selectionsList, (newValue, oldValue) => { if (!isEmptyValue(newValue)) { const row = newValue.at()