From 3897ffb2251f130e3b02734ffbb71a0fc2475a70 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Fri, 24 May 2024 17:54:23 -0400 Subject: [PATCH] #2242 Fix: When creating DxP from Purchase Order from SB, the record is lost. (#2277) --- src/components/ADempiere/DataTable/Windows/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/ADempiere/DataTable/Windows/index.vue b/src/components/ADempiere/DataTable/Windows/index.vue index 0a37a333e3e..8e2d488b08c 100644 --- a/src/components/ADempiere/DataTable/Windows/index.vue +++ b/src/components/ADempiere/DataTable/Windows/index.vue @@ -111,7 +111,7 @@ import LoadingView from '@/components/ADempiere/LoadingView/index.vue' import useFullScreenContainer from '@/components/ADempiere/ContainerOptions/FullScreenContainer/useFullScreenContainer' // Utils and Helper Methods -import { isEmptyValue } from '@/utils/ADempiere/valueUtils' +import { isEmptyValue, setRecordPath } from '@/utils/ADempiere/valueUtils.js' export default defineComponent({ name: 'WindowsTable', @@ -388,6 +388,12 @@ export default defineComponent({ parentUuid: props.parentUuid, containerUuid: props.containerUuid }) + const { table_name } = props.panelMetadata + if (!isEmptyValue(table_name) && !isEmptyValue(row[table_name + '_ID'])) { + setRecordPath({ + recordId: row[table_name + '_ID'] + }) + } // if (isMobile.value) { // changeTable(false)