Commit d18b6c18 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added isDelivery class property


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@789 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d00ba9e5
...@@ -44,6 +44,7 @@ class AccountingTransaction(Delivery): ...@@ -44,6 +44,7 @@ class AccountingTransaction(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()
......
...@@ -214,6 +214,7 @@ class Delivery(XMLObject): ...@@ -214,6 +214,7 @@ class Delivery(XMLObject):
portal_type = 'Delivery' portal_type = 'Delivery'
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
isDelivery = 1
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -391,7 +392,7 @@ une liste de mouvements...""" ...@@ -391,7 +392,7 @@ une liste de mouvements..."""
This method is called whenever a packing list is being invoiced This method is called whenever a packing list is being invoiced
""" """
# we create an invoice for this delivery # we create an invoice for this delivery
self.activate().buildInvoiceList() self.activate(priority=4).buildInvoiceList()
invoice = WorkflowMethod(_invoice, 'invoice') invoice = WorkflowMethod(_invoice, 'invoice')
......
...@@ -42,6 +42,7 @@ class Inventory(XMLObject): ...@@ -42,6 +42,7 @@ class Inventory(XMLObject):
portal_type = 'Inventory' portal_type = 'Inventory'
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
isDelivery = 1
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
......
...@@ -65,6 +65,7 @@ class PackingList(Delivery): ...@@ -65,6 +65,7 @@ class PackingList(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()
......
...@@ -44,6 +44,7 @@ class ProductionReport(Delivery): ...@@ -44,6 +44,7 @@ class ProductionReport(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()
......
...@@ -44,6 +44,7 @@ class Transaction(Delivery): ...@@ -44,6 +44,7 @@ class Transaction(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()
......
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