src-db/database/model/triggers/AD_ORG_TRG.xml
changeset 1605 8a0fe0193bef
parent 799 fef2c5e2feb7
child 1775 f3d90a78dc68
--- a/src-db/database/model/triggers/AD_ORG_TRG.xml	Wed Sep 03 17:10:52 2008 +0000
+++ b/src-db/database/model/triggers/AD_ORG_TRG.xml	Wed Sep 03 17:55:37 2008 +0000
@@ -22,8 +22,8 @@
   * Specifically, this derivative work is based upon the following Compiere
   * file and version.
   *************************************************************************/
-  v_xTree_ID NUMBER;
-  v_xParent_ID NUMBER;
+  v_xTree_ID VARCHAR2(32);
+  v_xParent_ID VARCHAR2(32);
 BEGIN
   IF(INSERTING) THEN
     -- Add to all roles of the client
@@ -55,14 +55,14 @@
     INSERT
     INTO AD_TreeNode
       (
-        AD_Client_ID, AD_Org_ID, IsActive,
+        ad_treeNode_Id, AD_Client_ID, AD_Org_ID, IsActive,
         Created, CreatedBy, Updated,
         UpdatedBy, AD_Tree_ID, Node_ID,
         Parent_ID, SeqNo
       )
       VALUES
       (
-        :new.AD_Client_ID, :new.AD_Org_ID, :new.IsActive,
+        get_uuid(), :new.AD_Client_ID, :new.AD_Org_ID, :new.IsActive,
         :new.Created, :new.CreatedBy, :new.Updated,
         :new.UpdatedBy, v_xTree_ID, :new.AD_Org_ID,
         v_xParent_ID,(