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

- Fix unit test errors
This commit is contained in:
hengsin 2023-09-13 12:48:54 +08:00 committed by GitHub
parent c941938869
commit 39d159d44a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -5794,6 +5794,12 @@ public abstract class PO
private void checkRecordIDCrossTenant() { private void checkRecordIDCrossTenant() {
if (isSafeCrossTenant.get()) if (isSafeCrossTenant.get())
return; return;
//ad_table_id+record_id 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 idxRecordId = p_info.getColumnIndex("Record_ID"); int idxRecordId = p_info.getColumnIndex("Record_ID");
if (idxRecordId < 0) if (idxRecordId < 0)
return; return;