IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) (#2068)

* IDEMPIERE-5567 Support of UUID as Key (FHCA-4195)

- The process Create Window from Table is broken because it doesn't find the tab UUID (out of trx)

* - simplify code

* - remove warning

* - change for a better approach using transaction

* - implement better approach suggested by Heng Sin
This commit is contained in:
Carlos Ruiz 2023-10-22 15:24:00 +02:00 committed by GitHub
parent ef9ecb3490
commit e43b000894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -5854,6 +5854,12 @@ public abstract class PO
private void checkRecordUUCrossTenant() {
if (isSafeCrossTenant.get())
return;
//ad_table_id+record_uu validation will fail for ad_pinstance due to ad_pinstance is
//being saved and updated outside of server process transaction.
if (I_AD_PInstance.Table_Name.equals(p_info.getTableName()))
return;
int idxRecordUU = p_info.getColumnIndex("Record_UU");
if (idxRecordUU < 0)
return;