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:
parent
ef9ecb3490
commit
e43b000894
|
@ -5854,6 +5854,12 @@ public abstract class PO
|
||||||
private void checkRecordUUCrossTenant() {
|
private void checkRecordUUCrossTenant() {
|
||||||
if (isSafeCrossTenant.get())
|
if (isSafeCrossTenant.get())
|
||||||
return;
|
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");
|
int idxRecordUU = p_info.getColumnIndex("Record_UU");
|
||||||
if (idxRecordUU < 0)
|
if (idxRecordUU < 0)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue