From 3ecd5b38ec538019e40aba2c78b24f71b7ebf807 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Sun, 2 May 2004 19:22:14 +0000
Subject: [PATCH] Added isDelivery class property confirm uses low priority
 activate

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@787 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Order.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Document/Order.py b/product/ERP5/Document/Order.py
index 30892ecf19..1455a88099 100755
--- a/product/ERP5/Document/Order.py
+++ b/product/ERP5/Document/Order.py
@@ -45,6 +45,7 @@ class Order(Delivery):
     add_permission = Permissions.AddPortalContent
     isPortalContent = 1
     isRADContent = 1
+    isDelivery = 1
 
     # Declarative security
     security = ClassSecurityInfo()
@@ -221,7 +222,7 @@ An order..."""
       """
       self._createOrderRule()
       # At confirm stage, we create deliveries for this order
-      self.activate().buildDeliveryList()
+      self.activate(priority=4).buildDeliveryList()
 
     confirm = WorkflowMethod(_confirm, 'confirm')
 
-- 
2.30.9