diff --git a/product/ERP5/Document/AccountingTransaction.py b/product/ERP5/Document/AccountingTransaction.py index 3ac3e6336c3e4e2c3be2cfbfbc1c951784969dfe..b92d9397f6a74d534dd57d5b076faf8211bbd2d6 100755 --- a/product/ERP5/Document/AccountingTransaction.py +++ b/product/ERP5/Document/AccountingTransaction.py @@ -44,6 +44,7 @@ class AccountingTransaction(Delivery): add_permission = Permissions.AddPortalContent isPortalContent = 1 isRADContent = 1 + isDelivery = 1 # Declarative security security = ClassSecurityInfo() diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py index d333f1178c71082bab016198bbd0e6594e42ac27..e1927188e4e1281d968c41095e00b14fda8db8f0 100755 --- a/product/ERP5/Document/Delivery.py +++ b/product/ERP5/Document/Delivery.py @@ -214,6 +214,7 @@ class Delivery(XMLObject): portal_type = 'Delivery' isPortalContent = 1 isRADContent = 1 + isDelivery = 1 # Declarative security security = ClassSecurityInfo() @@ -391,7 +392,7 @@ une liste de mouvements...""" This method is called whenever a packing list is being invoiced """ # we create an invoice for this delivery - self.activate().buildInvoiceList() + self.activate(priority=4).buildInvoiceList() invoice = WorkflowMethod(_invoice, 'invoice') diff --git a/product/ERP5/Document/Inventory.py b/product/ERP5/Document/Inventory.py index 2af240f02dc2f4f81076b577c7f3db006289fa97..7df9214654cd18efae6aad3965a7eaf12a4c3cbd 100755 --- a/product/ERP5/Document/Inventory.py +++ b/product/ERP5/Document/Inventory.py @@ -42,6 +42,7 @@ class Inventory(XMLObject): portal_type = 'Inventory' isPortalContent = 1 isRADContent = 1 + isDelivery = 1 # Declarative security security = ClassSecurityInfo() diff --git a/product/ERP5/Document/PackingList.py b/product/ERP5/Document/PackingList.py index b0f1aaa2d6b6bbd62c64109435001a0197965ba1..fd2b996d8399419010168fa12251741c6d9a802e 100755 --- a/product/ERP5/Document/PackingList.py +++ b/product/ERP5/Document/PackingList.py @@ -65,6 +65,7 @@ class PackingList(Delivery): add_permission = Permissions.AddPortalContent isPortalContent = 1 isRADContent = 1 + isDelivery = 1 # Declarative security security = ClassSecurityInfo() diff --git a/product/ERP5/Document/ProductionReport.py b/product/ERP5/Document/ProductionReport.py index 6df38ae85fae23d154ce78932469e1d453f7e9cd..4c2d10b2c72cffc49d2dc0da1a82504db95135d7 100755 --- a/product/ERP5/Document/ProductionReport.py +++ b/product/ERP5/Document/ProductionReport.py @@ -44,6 +44,7 @@ class ProductionReport(Delivery): add_permission = Permissions.AddPortalContent isPortalContent = 1 isRADContent = 1 + isDelivery = 1 # Declarative security security = ClassSecurityInfo() diff --git a/product/ERP5/Document/Transaction.py b/product/ERP5/Document/Transaction.py index aad3c4dc1e52fc76a07f5e2cbc387a695392dca9..0cae71054a7feb709432fb44983b6b4d37842ba6 100755 --- a/product/ERP5/Document/Transaction.py +++ b/product/ERP5/Document/Transaction.py @@ -44,6 +44,7 @@ class Transaction(Delivery): add_permission = Permissions.AddPortalContent isPortalContent = 1 isRADContent = 1 + isDelivery = 1 # Declarative security security = ClassSecurityInfo()