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

- Fix issues created with latest change - not able to create new records in Zero ID tables (C_DocType, AD_User, etc)
This commit is contained in:
Carlos Ruiz 2023-06-06 15:19:46 +02:00 committed by GitHub
parent 0ae48988bd
commit 08c6d0aaa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1632,7 +1632,7 @@ public class GridTable extends AbstractTableModel
m_trxName = null;
if (Record_ID != -1)
{
if (Record_ID == 0 && MTable.isZeroIDTable(table.getTableName())) {
if (Record_ID == 0 && !m_inserting && MTable.isZeroIDTable(table.getTableName())) {
String uuidFromZeroID = table.getUUIDFromZeroID();
po = table.getPOByUU(uuidFromZeroID, m_trxName);
} else {