IDEMPIERE-3897:export csv: reference column export like normal column
I_AD_Language special treatment, it use AD_Language a string column to reference not AD_Language_id
This commit is contained in:
parent
d0ca3eb7be
commit
e7e2d079a8
|
@ -48,6 +48,7 @@ import org.compiere.model.GridField;
|
|||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.GridWindow;
|
||||
import org.compiere.model.GridWindowVO;
|
||||
import org.compiere.model.I_AD_Language;
|
||||
import org.compiere.model.MColumn;
|
||||
import org.compiere.model.MLocation;
|
||||
import org.compiere.model.MProcess;
|
||||
|
@ -1074,8 +1075,9 @@ public class GridTabCSVImporter implements IGridTabImporter
|
|||
|
||||
if(isForeing)
|
||||
foreignColumn = header.get(i).substring(header.get(i).indexOf("[")+1,header.get(i).indexOf("]"));
|
||||
|
||||
if(!"C_Location".equals(gridTab.getTableName()) && header.get(i).contains(MTable.getTableName(Env.getCtx(),MLocation.Table_ID))){
|
||||
if(!isForeing && !isKeyColumn && I_AD_Language.Table_Name.equals(columnName))
|
||||
setValue = value;
|
||||
else if(!"C_Location".equals(gridTab.getTableName()) && header.get(i).contains(MTable.getTableName(Env.getCtx(),MLocation.Table_ID))){
|
||||
|
||||
if(address == null){
|
||||
if(isInsertMode()){
|
||||
|
|
Loading…
Reference in New Issue