From 03482c29b1a0e3aace0201dfacfdd58ef1ec8e44 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 19 Dec 2006 01:11:14 +0000 Subject: [PATCH] Solve Bug ID [ 1618469 ] ORA-01400 on Import BPartner (Column not updateable error when new) --- dbPort/src/org/compiere/model/PO.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dbPort/src/org/compiere/model/PO.java b/dbPort/src/org/compiere/model/PO.java index 8a5796123a..c50e930e82 100644 --- a/dbPort/src/org/compiere/model/PO.java +++ b/dbPort/src/org/compiere/model/PO.java @@ -649,8 +649,10 @@ public abstract class PO log.log(Level.SEVERE, "Virtual Column" + colInfo); return false; } - // - if (!p_info.isColumnUpdateable(index)) + // + // globalqss -- Bug 1618469 - is throwing not updateable even on new records + // if (!p_info.isColumnUpdateable(index)) + if ( ( ! p_info.isColumnUpdateable(index) ) && ( ! is_new() ) ) { colInfo += " - NewValue=" + value + " - OldValue=" + get_Value(index); log.log(Level.SEVERE, "Column not updateable" + colInfo);