From fb7dc4086795da39d7a0ea6d28c046246d1bf8a9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Le=20Ninivin?= <cedric.leninivin@tiolive.com>
Date: Tue, 24 Oct 2017 08:33:22 +0000
Subject: [PATCH] erp5_trade: Add DeliveryCausalityStateConstraint on Packing
 List portal types

---
 .../property_sheet_list.xml                       | 15 +++++++++++++++
 .../bt/template_portal_type_property_sheet_list   |  5 +++++
 2 files changed, 20 insertions(+)

diff --git a/bt5/erp5_trade/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_trade/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
index 8dab6637b1..c18371bca7 100644
--- a/bt5/erp5_trade/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
+++ b/bt5/erp5_trade/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
@@ -6,9 +6,24 @@
  <portal_type id="Delivery Node">
   <item>DeliveryNode</item>
  </portal_type>
+ <portal_type id="Internal Packing List">
+  <item>DeliveryCausalityStateConstraint</item>
+ </portal_type>
+ <portal_type id="Purchase Packing List">
+  <item>DeliveryCausalityStateConstraint</item>
+ </portal_type>
+ <portal_type id="Returned Purchase Packing List">
+  <item>DeliveryCausalityStateConstraint</item>
+ </portal_type>
+ <portal_type id="Returned Sale Packing List">
+  <item>DeliveryCausalityStateConstraint</item>
+ </portal_type>
  <portal_type id="Sale Order">
   <item>PaymentCondition</item>
  </portal_type>
+ <portal_type id="Sale Packing List">
+  <item>DeliveryCausalityStateConstraint</item>
+ </portal_type>
  <portal_type id="Sale Trade Condition">
   <item>PaymentCondition</item>
  </portal_type>
diff --git a/bt5/erp5_trade/bt/template_portal_type_property_sheet_list b/bt5/erp5_trade/bt/template_portal_type_property_sheet_list
index 5f5e9237bf..6deca5ffb5 100644
--- a/bt5/erp5_trade/bt/template_portal_type_property_sheet_list
+++ b/bt5/erp5_trade/bt/template_portal_type_property_sheet_list
@@ -1,6 +1,11 @@
 Business Process | Reference
 Business Process | Version
 Delivery Node | DeliveryNode
+Internal Packing List | DeliveryCausalityStateConstraint
+Purchase Packing List | DeliveryCausalityStateConstraint
+Returned Purchase Packing List | DeliveryCausalityStateConstraint
+Returned Sale Packing List | DeliveryCausalityStateConstraint
 Sale Order | PaymentCondition
+Sale Packing List | DeliveryCausalityStateConstraint
 Sale Trade Condition | PaymentCondition
 Trade Model Path | PaymentCondition
\ No newline at end of file
-- 
2.30.9