Commit 3ecd5b38 authored by Jean-Paul Smets's avatar Jean-Paul Smets

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
parent cb303594
...@@ -45,6 +45,7 @@ class Order(Delivery): ...@@ -45,6 +45,7 @@ class Order(Delivery):
add_permission = Permissions.AddPortalContent add_permission = Permissions.AddPortalContent
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
isDelivery = 1
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -221,7 +222,7 @@ An order...""" ...@@ -221,7 +222,7 @@ An order..."""
""" """
self._createOrderRule() self._createOrderRule()
# At confirm stage, we create deliveries for this order # At confirm stage, we create deliveries for this order
self.activate().buildDeliveryList() self.activate(priority=4).buildDeliveryList()
confirm = WorkflowMethod(_confirm, 'confirm') confirm = WorkflowMethod(_confirm, 'confirm')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment