From f0bdcbb913ddd24e3aba5da69fc75ca358525079 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud <58596990+nmicoud@users.noreply.github.com> Date: Tue, 5 Sep 2023 13:15:01 +0200 Subject: [PATCH] =?UTF-8?q?IDEMPIERE-5844:=20Add=20missing=20field=20/=20c?= =?UTF-8?q?ode=20for=20AD=5FPreference.AD=5FInfoWin=E2=80=A6=20(#1993)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * IDEMPIERE-5844: Add missing field / code for AD_Preference.AD_InfoWindow_ID https://idempiere.atlassian.net/browse/IDEMPIERE-5844 * Update oracle/202309041344_IDEMPIERE-5844.sql * Update postgresql/202309041344_IDEMPIERE-5844.sql --------- Co-authored-by: Carlos Ruiz --- .../iD10/oracle/202309041344_IDEMPIERE-5844.sql | 16 ++++++++++++++++ .../postgresql/202309041344_IDEMPIERE-5844.sql | 13 +++++++++++++ .../src/org/compiere/model/X_AD_Preference.java | 4 +++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 migration/iD10/oracle/202309041344_IDEMPIERE-5844.sql create mode 100644 migration/iD10/postgresql/202309041344_IDEMPIERE-5844.sql diff --git a/migration/iD10/oracle/202309041344_IDEMPIERE-5844.sql b/migration/iD10/oracle/202309041344_IDEMPIERE-5844.sql new file mode 100644 index 0000000000..52ffec55f9 --- /dev/null +++ b/migration/iD10/oracle/202309041344_IDEMPIERE-5844.sql @@ -0,0 +1,16 @@ +-- IDEMPIERE-5844 +SELECT register_migration_script('202309041344_IDEMPIERE-5844.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Aug 10, 2023, 1:31:52 PM CEST +INSERT INTO AD_Ref_List (AD_Ref_List_ID,Name,AD_Reference_ID,Value,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Ref_List_UU) VALUES (200643,'Info',200084,'I',0,0,'Y',TO_TIMESTAMP('2023-08-10 13:31:51','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-08-10 13:31:51','YYYY-MM-DD HH24:MI:SS'),10,'D','4e05c125-8a96-4a0c-8e7a-57781c141f3a') +; + +-- Sep 4, 2023, 1:44:46 PM CEST +UPDATE AD_Ref_List SET Name='Info Window',Updated=TO_TIMESTAMP('2023-09-04 13:44:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Ref_List_ID=200643 +; + +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207714,'Info Window','Info and search/select Window','The Info window is used to search and select records as well as display information relevant to the selection.',156,211766,'Y',10,100,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-08-10 13:32:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-08-10 13:32:45','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','621b4e27-5931-45c2-9b1a-8adef6bedb46','Y',110,2) +; diff --git a/migration/iD10/postgresql/202309041344_IDEMPIERE-5844.sql b/migration/iD10/postgresql/202309041344_IDEMPIERE-5844.sql new file mode 100644 index 0000000000..e19773b454 --- /dev/null +++ b/migration/iD10/postgresql/202309041344_IDEMPIERE-5844.sql @@ -0,0 +1,13 @@ +-- IDEMPIERE-5844 +SELECT register_migration_script('202309041344_IDEMPIERE-5844.sql') FROM dual; + +-- Aug 10, 2023, 1:31:52 PM CEST +INSERT INTO AD_Ref_List (AD_Ref_List_ID,Name,AD_Reference_ID,Value,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Ref_List_UU) VALUES (200643,'Info',200084,'I',0,0,'Y',TO_TIMESTAMP('2023-08-10 13:31:51','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-08-10 13:31:51','YYYY-MM-DD HH24:MI:SS'),10,'D','4e05c125-8a96-4a0c-8e7a-57781c141f3a') +; + +-- Sep 4, 2023, 1:44:46 PM CEST +UPDATE AD_Ref_List SET Name='Info Window',Updated=TO_TIMESTAMP('2023-09-04 13:44:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Ref_List_ID=200643 +; + +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207714,'Info Window','Info and search/select Window','The Info window is used to search and select records as well as display information relevant to the selection.',156,211766,'Y',10,100,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-08-10 13:32:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-08-10 13:32:45','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','621b4e27-5931-45c2-9b1a-8adef6bedb46','Y',110,2) +; diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_Preference.java b/org.adempiere.base/src/org/compiere/model/X_AD_Preference.java index d881c67e6f..353f6d698f 100644 --- a/org.adempiere.base/src/org/compiere/model/X_AD_Preference.java +++ b/org.adempiere.base/src/org/compiere/model/X_AD_Preference.java @@ -31,7 +31,7 @@ public class X_AD_Preference extends PO implements I_AD_Preference, I_Persistent /** * */ - private static final long serialVersionUID = 20230409L; + private static final long serialVersionUID = 20230904L; /** Standard Constructor */ public X_AD_Preference (Properties ctx, int AD_Preference_ID, String trxName) @@ -291,6 +291,8 @@ public class X_AD_Preference extends PO implements I_AD_Preference, I_Persistent /** PreferenceFor AD_Reference_ID=200084 */ public static final int PREFERENCEFOR_AD_Reference_ID=200084; + /** Info Window = I */ + public static final String PREFERENCEFOR_InfoWindow = "I"; /** Process = P */ public static final String PREFERENCEFOR_Process = "P"; /** Window = W */