From 443df1d53e7f29ce91212177344002b2accda204 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20W=C3=B6lfel?= <klaus@nexedi.com>
Date: Wed, 26 Nov 2014 19:53:36 +0100
Subject: [PATCH] erp5_trade: enable template creation for purchase order

---
 .../allowed_content_types.xml                                    | 1 +
 bt5/erp5_trade/bt/template_portal_type_allowed_content_type_list | 1 +
 2 files changed, 2 insertions(+)

diff --git a/bt5/erp5_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index 1505704892..31028ffd4f 100644
--- a/bt5/erp5_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -82,6 +82,7 @@
   <item>Variation Divergence Tester</item>
  </portal_type>
  <portal_type id="Preference">
+  <item>Purchase Order</item>
   <item>Sale Order</item>
  </portal_type>
  <portal_type id="Property Sheet">
diff --git a/bt5/erp5_trade/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_trade/bt/template_portal_type_allowed_content_type_list
index 81582372dc..9d76fe912c 100644
--- a/bt5/erp5_trade/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_trade/bt/template_portal_type_allowed_content_type_list
@@ -42,6 +42,7 @@ Order Root Simulation Rule | Net Converted Quantity Divergence Tester
 Order Root Simulation Rule | Specialise Divergence Tester
 Order Root Simulation Rule | String Divergence Tester
 Order Root Simulation Rule | Variation Divergence Tester
+Preference | Purchase Order
 Preference | Sale Order
 Property Sheet | Trade Model Line Cell Consistency Constraint
 Purchase Order Line | Purchase Order Cell
-- 
2.30.9