From 3e013b3f4445ac70ae196d85b7d432c45ac61c11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 9 Dec 2005 18:12:37 +0000
Subject: [PATCH] Invoice Cell and Invoice Line are members of
 delivery_movement and invoice_movement

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4578 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Invoice%20Cell.xml           | 43 ++++++++++++++++---
 .../portal_types/Invoice%20Line.xml           | 13 ++++++
 2 files changed, 51 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Cell.xml b/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Cell.xml
index e1eab739e6..c9b7c9deac 100755
--- a/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Cell.xml
+++ b/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Cell.xml
@@ -37,12 +37,20 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>acquire_local_roles</string> </key>
+            <value> <int>1</int> </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
-              <tuple>
-                <string></string>
-              </tuple>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>base_category_list</string> </key>
+            <value>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -55,7 +63,7 @@
         </item>
         <item>
             <key> <string>description</string> </key>
-            <value> <string>Une ligne tarifaire.</string> </value>
+            <value> <string>Invoice cell are deeper level of details from invoice lines, eg when the same resource with variation is sold, you can use only one line and use cells for the variations.</string> </value>
         </item>
         <item>
             <key> <string>factory</string> </key>
@@ -65,13 +73,38 @@
             <key> <string>filter_content_types</string> </key>
             <value> <int>1</int> </value>
         </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple>
+                <string>delivery_movement</string>
+                <string>invoice_movement</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>hidden_content_type_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>id</string> </key>
             <value> <string>Invoice Cell</string> </value>
         </item>
+        <item>
+            <key> <string>init_script</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>property_sheet_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>title</string> </key>
-            <value>                 <string></string> </value>
+            <value> <string></string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Line.xml b/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Line.xml
index a8692a2928..148882012e 100755
--- a/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Line.xml
+++ b/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Line.xml
@@ -38,6 +38,10 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>acquire_local_roles</string> </key>
+            <value> <int>1</int> </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
@@ -76,6 +80,15 @@
             <key> <string>filter_content_types</string> </key>
             <value> <int>1</int> </value>
         </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple>
+                <string>delivery_movement</string>
+                <string>invoice_movement</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>hidden_content_type_list</string> </key>
             <value>
-- 
2.30.9