fixed bug 25773: error in xml REST ws when adding a row with a computed column
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 20 Feb 2014 17:19:02 +0100
changeset 22271 f18682fd4963
parent 22034 510340c73c50
child 22272 9b5563b11b28
fixed bug 25773: error in xml REST ws when adding a row with a computed column
src/org/openbravo/dal/xml/XMLEntityConverter.java
--- a/src/org/openbravo/dal/xml/XMLEntityConverter.java	Thu Feb 13 08:58:43 2014 +0000
+++ b/src/org/openbravo/dal/xml/XMLEntityConverter.java	Thu Feb 20 17:19:02 2014 +0100
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2008-2011 Openbravo SLU 
+ * All portions are Copyright (C) 2008-2014 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -221,7 +221,8 @@
           // TODO: make this option controlled
           final boolean isNotImportableProperty = p.isTransient(bob)
               || (p.isAuditInfo() && !isOptionImportAuditInfo()) || p.isInactive() || p.isProxy()
-              || p.getEntity().isVirtualEntity();
+              || p.getEntity().isVirtualEntity() || p.isComputedColumn();
+
           if (isNotImportableProperty) {
             log.debug("Property " + p + " is inactive, transient or auditinfo, " + "ignoring it");
             continue;