From a48897b3a4793b419244e7e9d17c991904f3b65b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 6 Dec 2007 18:09:55 +0000
Subject: [PATCH] Invoice Transaction Rule hidden content type should be ine
 erp5_invoicing, not erp5_accounting

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18089 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../hidden_content_type_list.xml                             | 3 ---
 bt5/erp5_accounting/bt/revision                              | 2 +-
 .../bt/template_portal_type_hidden_content_type_list         | 1 -
 .../hidden_content_type_list.xml                             | 5 +++++
 bt5/erp5_invoicing/bt/revision                               | 2 +-
 bt5/erp5_invoicing/bt/template_action_path_list              | 1 +
 .../bt/template_portal_type_hidden_content_type_list         | 1 +
 7 files changed, 9 insertions(+), 6 deletions(-)
 create mode 100644 bt5/erp5_invoicing/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml

diff --git a/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml b/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
index e42fd6ae87..fe81c4722a 100644
--- a/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
+++ b/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
@@ -8,9 +8,6 @@
  <portal_type id="Balance Transaction">
   <item>Balance Transaction Line</item>
  </portal_type>
- <portal_type id="Invoice Transaction Rule">
-  <item>Accounting Rule Cell</item>
- </portal_type>
  <portal_type id="Payment Transaction">
   <item>Accounting Transaction Line</item>
  </portal_type>
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 54a584dece..37e6f1741c 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-514
\ No newline at end of file
+515
\ No newline at end of file
diff --git a/bt5/erp5_accounting/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_accounting/bt/template_portal_type_hidden_content_type_list
index 18850032c1..80b95bdcfe 100644
--- a/bt5/erp5_accounting/bt/template_portal_type_hidden_content_type_list
+++ b/bt5/erp5_accounting/bt/template_portal_type_hidden_content_type_list
@@ -1,7 +1,6 @@
 Accounting Transaction Module | Balance Transaction
 Accounting Transaction | Accounting Transaction Line
 Balance Transaction | Balance Transaction Line
-Invoice Transaction Rule | Accounting Rule Cell
 Payment Transaction | Accounting Transaction Line
 Purchase Invoice Transaction | Purchase Invoice Transaction Line
 Sale Invoice Transaction | Sale Invoice Transaction Line
\ No newline at end of file
diff --git a/bt5/erp5_invoicing/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml b/bt5/erp5_invoicing/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
new file mode 100644
index 0000000000..fcf3c891a3
--- /dev/null
+++ b/bt5/erp5_invoicing/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
@@ -0,0 +1,5 @@
+<hidden_content_type_list>
+ <portal_type id="Invoice Transaction Rule">
+  <item>Accounting Rule Cell</item>
+ </portal_type>
+</hidden_content_type_list>
\ No newline at end of file
diff --git a/bt5/erp5_invoicing/bt/revision b/bt5/erp5_invoicing/bt/revision
index e440e5c842..bf0d87ab1b 100644
--- a/bt5/erp5_invoicing/bt/revision
+++ b/bt5/erp5_invoicing/bt/revision
@@ -1 +1 @@
-3
\ No newline at end of file
+4
\ No newline at end of file
diff --git a/bt5/erp5_invoicing/bt/template_action_path_list b/bt5/erp5_invoicing/bt/template_action_path_list
index e6785ea106..a1419c9892 100644
--- a/bt5/erp5_invoicing/bt/template_action_path_list
+++ b/bt5/erp5_invoicing/bt/template_action_path_list
@@ -10,6 +10,7 @@ Invoice Transaction Rule | view
 Invoicing Rule | view
 Purchase Invoice Transaction | view_invoice
 Sale Invoice Transaction | invoice_item_list
+Sale Invoice Transaction | invoice_item_list
 Sale Invoice Transaction | jump_to_related_sale_packing_list
 Sale Invoice Transaction | payment_condition
 Sale Invoice Transaction | trade_condition_discount
diff --git a/bt5/erp5_invoicing/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_invoicing/bt/template_portal_type_hidden_content_type_list
index e69de29bb2..d6b41f7c0d 100644
--- a/bt5/erp5_invoicing/bt/template_portal_type_hidden_content_type_list
+++ b/bt5/erp5_invoicing/bt/template_portal_type_hidden_content_type_list
@@ -0,0 +1 @@
+Invoice Transaction Rule | Accounting Rule Cell
\ No newline at end of file
-- 
2.30.9