IDEMPIERE-3897 export csv: reference column export like normal column (#189)

Fix issue that entity type and language are not being set when imported
This commit is contained in:
Carlos Ruiz 2020-07-30 04:47:56 +02:00 committed by GitHub
parent f2a8de6779
commit e79ef31cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -1077,9 +1077,13 @@ public class GridTabCSVImporter implements IGridTabImporter
if(isForeing)
foreignColumn = header.get(i).substring(header.get(i).indexOf("[")+1,header.get(i).indexOf("]"));
if(!isForeing && !isKeyColumn && ("AD_Language".equals(columnName) || "EntityType".equals(columnName)))
if(!isForeing && !isKeyColumn && ("AD_Language".equals(columnName) || "EntityType".equals(columnName))) {
setValue = value;
else if(!"C_Location".equals(gridTab.getTableName()) && header.get(i).contains(MTable.getTableName(Env.getCtx(),MLocation.Table_ID))){
GridField field = gridTab.getField(columnName);
logMsg = gridTab.setValue(field,setValue);
if(logMsg!=null && logMsg.equals(""))
logMsg= null;
}else if(!"C_Location".equals(gridTab.getTableName()) && header.get(i).contains(MTable.getTableName(Env.getCtx(),MLocation.Table_ID))){
if(address == null){
if(isInsertMode()){