IDEMPIERE-1775 PackOut process is not exporting UUIDs references for fields M_Locator_ID and C_Location_ID

This commit is contained in:
Juan David Arboleda 2014-03-12 08:36:13 -05:00
parent 2dbc965b5f
commit 319e2d27b8
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,8 @@ import org.compiere.model.PO;
import org.compiere.model.POInfo; import org.compiere.model.POInfo;
import org.compiere.model.X_AD_Client; import org.compiere.model.X_AD_Client;
import org.compiere.model.X_AD_Org; import org.compiere.model.X_AD_Org;
import org.compiere.model.X_C_Location;
import org.compiere.model.X_M_Locator;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
import org.compiere.util.DisplayType; import org.compiere.util.DisplayType;
import org.xml.sax.SAXException; import org.xml.sax.SAXException;
@ -275,6 +277,10 @@ public class PoExporter {
addBlob(columnName); addBlob(columnName);
} else if (columnName.equals(po.getUUIDColumnName()) && po.get_Value(columnName) == null) { } else if (columnName.equals(po.getUUIDColumnName()) && po.get_Value(columnName) == null) {
continue; continue;
} else if (DisplayType.Locator == displayType) {
addTableReference(columnName, X_M_Locator.Table_Name, new AttributesImpl());
} else if (DisplayType.Location == displayType) {
addTableReference(columnName, X_C_Location.Table_Name, new AttributesImpl());
} else { } else {
add(columnName, "", new AttributesImpl()); add(columnName, "", new AttributesImpl());
} }