related to issue 24389: backed out changeset 21d0baeb6c99
authorGuillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Tue, 20 Aug 2013 09:33:47 +0200
changeset 20997 55c000c91897
parent 20996 c29367b38105
child 20998 8d3f43817c4f
related to issue 24389: backed out changeset 21d0baeb6c99
src-db/database/model/triggers/M_TRANSACTION_TRG2.xml
--- a/src-db/database/model/triggers/M_TRANSACTION_TRG2.xml	Wed Aug 14 14:04:44 2013 +0530
+++ b/src-db/database/model/triggers/M_TRANSACTION_TRG2.xml	Tue Aug 20 09:33:47 2013 +0200
@@ -35,7 +35,8 @@
   END IF;
 
   IF (INSERTING) THEN
-    IF (:NEW.isreservationtriggerdisabled = 'Y') THEN RETURN;
+    IF (:NEW.isreservationtriggerdisabled = 'Y') THEN
+      RETURN NEW;
     END IF;
     IF (:NEW.movementqty < 0 AND :NEW.m_product_uom_id IS NULL) THEN
       -- Check reservations. Reserved stock must be released before inserting the transacion.