From be1980466df8b9148363da0d7f8ed9543374c91d Mon Sep 17 00:00:00 2001
From: Tristan Cavelier <tristan.cavelier@tiolive.com>
Date: Mon, 27 Jul 2015 12:15:02 +0000
Subject: [PATCH] XXX erp5_trade:

---
 .../internal_packing_list_module.xml          | 13 +++-----
 .../ModuleTemplateItem/inventory_module.xml   |  3 ++
 .../purchase_order_module.xml                 | 31 +++++--------------
 .../purchase_packing_list_module.xml          | 31 +++++--------------
 .../purchase_trade_condition_module.xml       | 31 +++++--------------
 .../returned_sale_packing_list_module.xml     | 13 +++-----
 .../ModuleTemplateItem/sale_order_module.xml  |  3 ++
 .../sale_packing_list_module.xml              | 31 +++++--------------
 .../sale_trade_condition_module.xml           |  3 ++
 9 files changed, 45 insertions(+), 114 deletions(-)

diff --git a/bt5/erp5_trade/ModuleTemplateItem/internal_packing_list_module.xml b/bt5/erp5_trade/ModuleTemplateItem/internal_packing_list_module.xml
index f14618eb87..ec8f648ade 100644
--- a/bt5/erp5_trade/ModuleTemplateItem/internal_packing_list_module.xml
+++ b/bt5/erp5_trade/ModuleTemplateItem/internal_packing_list_module.xml
@@ -1,4 +1,7 @@
 <module>
+ <category_list>
+  <category>business_application/12</category>
+ </category_list>
  <id>internal_packing_list_module</id>
  <permission_list>
   <permission type='tuple'>
@@ -45,15 +48,6 @@
    <role>Assignor</role>
    <role>Manager</role>
   </permission>
-  <permission type='tuple'>
-   <name>Copy or Move</name>
-   <role>Assignee</role>
-   <role>Assignor</role>
-   <role>Associate</role>
-   <role>Auditor</role>
-   <role>Author</role>
-   <role>Manager</role>
-  </permission>
   <permission type='tuple'>
    <name>Delete objects</name>
    <role>Assignor</role>
@@ -79,6 +73,7 @@
    <role>Assignor</role>
    <role>Associate</role>
    <role>Auditor</role>
+   <role>Author</role>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
diff --git a/bt5/erp5_trade/ModuleTemplateItem/inventory_module.xml b/bt5/erp5_trade/ModuleTemplateItem/inventory_module.xml
index ebad8f1142..773f2374c5 100644
--- a/bt5/erp5_trade/ModuleTemplateItem/inventory_module.xml
+++ b/bt5/erp5_trade/ModuleTemplateItem/inventory_module.xml
@@ -1,4 +1,7 @@
 <module>
+ <category_list>
+  <category>business_application/12</category>
+ </category_list>
  <id>inventory_module</id>
  <permission_list>
   <permission type='tuple'>
diff --git a/bt5/erp5_trade/ModuleTemplateItem/purchase_order_module.xml b/bt5/erp5_trade/ModuleTemplateItem/purchase_order_module.xml
index 8f9f1c185d..e982ea278f 100644
--- a/bt5/erp5_trade/ModuleTemplateItem/purchase_order_module.xml
+++ b/bt5/erp5_trade/ModuleTemplateItem/purchase_order_module.xml
@@ -1,4 +1,7 @@
 <module>
+ <category_list>
+  <category>business_application/12</category>
+ </category_list>
  <id>purchase_order_module</id>
  <permission_list>
   <permission type='tuple'>
@@ -28,37 +31,16 @@
    <role>Author</role>
    <role>Manager</role>
   </permission>
-  <permission type='tuple'>
-   <name>Add portal content</name>
-   <role>Assignor</role>
-   <role>Author</role>
-   <role>Manager</role>
-  </permission>
-  <permission type='tuple'>
-   <name>Add portal folders</name>
-   <role>Assignor</role>
-   <role>Author</role>
-   <role>Manager</role>
-  </permission>
-  <permission type='tuple'>
-   <name>Change local roles</name>
-   <role>Assignor</role>
+  <permission type='list'>
+   <name>Add ERP5 PDF Forms</name>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
-   <name>Copy or Move</name>
-   <role>Assignee</role>
+   <name>Add portal content</name>
    <role>Assignor</role>
-   <role>Associate</role>
-   <role>Auditor</role>
    <role>Author</role>
    <role>Manager</role>
   </permission>
-  <permission type='tuple'>
-   <name>Delete objects</name>
-   <role>Assignor</role>
-   <role>Manager</role>
-  </permission>
   <permission type='tuple'>
    <name>List folder contents</name>
    <role>Assignee</role>
@@ -79,6 +61,7 @@
    <role>Assignor</role>
    <role>Associate</role>
    <role>Auditor</role>
+   <role>Author</role>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
diff --git a/bt5/erp5_trade/ModuleTemplateItem/purchase_packing_list_module.xml b/bt5/erp5_trade/ModuleTemplateItem/purchase_packing_list_module.xml
index 22fa7e0ab3..ac2d9a4bc4 100644
--- a/bt5/erp5_trade/ModuleTemplateItem/purchase_packing_list_module.xml
+++ b/bt5/erp5_trade/ModuleTemplateItem/purchase_packing_list_module.xml
@@ -1,4 +1,7 @@
 <module>
+ <category_list>
+  <category>business_application/12</category>
+ </category_list>
  <id>purchase_packing_list_module</id>
  <permission_list>
   <permission type='tuple'>
@@ -28,37 +31,16 @@
    <role>Author</role>
    <role>Manager</role>
   </permission>
-  <permission type='tuple'>
-   <name>Add portal content</name>
-   <role>Assignor</role>
-   <role>Author</role>
-   <role>Manager</role>
-  </permission>
-  <permission type='tuple'>
-   <name>Add portal folders</name>
-   <role>Assignor</role>
-   <role>Author</role>
-   <role>Manager</role>
-  </permission>
-  <permission type='tuple'>
-   <name>Change local roles</name>
-   <role>Assignor</role>
+  <permission type='list'>
+   <name>Add ERP5 PDF Forms</name>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
-   <name>Copy or Move</name>
-   <role>Assignee</role>
+   <name>Add portal content</name>
    <role>Assignor</role>
-   <role>Associate</role>
-   <role>Auditor</role>
    <role>Author</role>
    <role>Manager</role>
   </permission>
-  <permission type='tuple'>
-   <name>Delete objects</name>
-   <role>Assignor</role>
-   <role>Manager</role>
-  </permission>
   <permission type='tuple'>
    <name>List folder contents</name>
    <role>Assignee</role>
@@ -79,6 +61,7 @@
    <role>Assignor</role>
    <role>Associate</role>
    <role>Auditor</role>
+   <role>Author</role>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
diff --git a/bt5/erp5_trade/ModuleTemplateItem/purchase_trade_condition_module.xml b/bt5/erp5_trade/ModuleTemplateItem/purchase_trade_condition_module.xml
index b8761145f9..f1137d09c9 100644
--- a/bt5/erp5_trade/ModuleTemplateItem/purchase_trade_condition_module.xml
+++ b/bt5/erp5_trade/ModuleTemplateItem/purchase_trade_condition_module.xml
@@ -1,4 +1,7 @@
 <module>
+ <category_list>
+  <category>business_application/12</category>
+ </category_list>
  <id>purchase_trade_condition_module</id>
  <permission_list>
   <permission type='tuple'>
@@ -28,37 +31,16 @@
    <role>Author</role>
    <role>Manager</role>
   </permission>
-  <permission type='tuple'>
-   <name>Add portal content</name>
-   <role>Assignor</role>
-   <role>Author</role>
-   <role>Manager</role>
-  </permission>
-  <permission type='tuple'>
-   <name>Add portal folders</name>
-   <role>Assignor</role>
-   <role>Author</role>
-   <role>Manager</role>
-  </permission>
-  <permission type='tuple'>
-   <name>Change local roles</name>
-   <role>Assignor</role>
+  <permission type='list'>
+   <name>Add ERP5 PDF Forms</name>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
-   <name>Copy or Move</name>
-   <role>Assignee</role>
+   <name>Add portal content</name>
    <role>Assignor</role>
-   <role>Associate</role>
-   <role>Auditor</role>
    <role>Author</role>
    <role>Manager</role>
   </permission>
-  <permission type='tuple'>
-   <name>Delete objects</name>
-   <role>Assignor</role>
-   <role>Manager</role>
-  </permission>
   <permission type='tuple'>
    <name>List folder contents</name>
    <role>Assignee</role>
@@ -79,6 +61,7 @@
    <role>Assignor</role>
    <role>Associate</role>
    <role>Auditor</role>
+   <role>Author</role>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
diff --git a/bt5/erp5_trade/ModuleTemplateItem/returned_sale_packing_list_module.xml b/bt5/erp5_trade/ModuleTemplateItem/returned_sale_packing_list_module.xml
index 4860564e50..bb3f6ac5cd 100644
--- a/bt5/erp5_trade/ModuleTemplateItem/returned_sale_packing_list_module.xml
+++ b/bt5/erp5_trade/ModuleTemplateItem/returned_sale_packing_list_module.xml
@@ -1,4 +1,7 @@
 <module>
+ <category_list>
+  <category>business_application/12</category>
+ </category_list>
  <id>returned_sale_packing_list_module</id>
  <permission_list>
   <permission type='tuple'>
@@ -45,15 +48,6 @@
    <role>Assignor</role>
    <role>Manager</role>
   </permission>
-  <permission type='tuple'>
-   <name>Copy or Move</name>
-   <role>Assignee</role>
-   <role>Assignor</role>
-   <role>Associate</role>
-   <role>Auditor</role>
-   <role>Author</role>
-   <role>Manager</role>
-  </permission>
   <permission type='tuple'>
    <name>Delete objects</name>
    <role>Assignor</role>
@@ -79,6 +73,7 @@
    <role>Assignor</role>
    <role>Associate</role>
    <role>Auditor</role>
+   <role>Author</role>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
diff --git a/bt5/erp5_trade/ModuleTemplateItem/sale_order_module.xml b/bt5/erp5_trade/ModuleTemplateItem/sale_order_module.xml
index 6e1a213b3c..798094b2ca 100644
--- a/bt5/erp5_trade/ModuleTemplateItem/sale_order_module.xml
+++ b/bt5/erp5_trade/ModuleTemplateItem/sale_order_module.xml
@@ -1,4 +1,7 @@
 <module>
+ <category_list>
+  <category>business_application/12</category>
+ </category_list>
  <id>sale_order_module</id>
  <permission_list>
   <permission type='tuple'>
diff --git a/bt5/erp5_trade/ModuleTemplateItem/sale_packing_list_module.xml b/bt5/erp5_trade/ModuleTemplateItem/sale_packing_list_module.xml
index 9c250ac6e0..9ea2655b1a 100644
--- a/bt5/erp5_trade/ModuleTemplateItem/sale_packing_list_module.xml
+++ b/bt5/erp5_trade/ModuleTemplateItem/sale_packing_list_module.xml
@@ -1,4 +1,7 @@
 <module>
+ <category_list>
+  <category>business_application/12</category>
+ </category_list>
  <id>sale_packing_list_module</id>
  <permission_list>
   <permission type='tuple'>
@@ -28,37 +31,16 @@
    <role>Author</role>
    <role>Manager</role>
   </permission>
-  <permission type='tuple'>
-   <name>Add portal content</name>
-   <role>Assignor</role>
-   <role>Author</role>
-   <role>Manager</role>
-  </permission>
-  <permission type='tuple'>
-   <name>Add portal folders</name>
-   <role>Assignor</role>
-   <role>Author</role>
-   <role>Manager</role>
-  </permission>
-  <permission type='tuple'>
-   <name>Change local roles</name>
-   <role>Assignor</role>
+  <permission type='list'>
+   <name>Add ERP5 PDF Forms</name>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
-   <name>Copy or Move</name>
-   <role>Assignee</role>
+   <name>Add portal content</name>
    <role>Assignor</role>
-   <role>Associate</role>
-   <role>Auditor</role>
    <role>Author</role>
    <role>Manager</role>
   </permission>
-  <permission type='tuple'>
-   <name>Delete objects</name>
-   <role>Assignor</role>
-   <role>Manager</role>
-  </permission>
   <permission type='tuple'>
    <name>List folder contents</name>
    <role>Assignee</role>
@@ -79,6 +61,7 @@
    <role>Assignor</role>
    <role>Associate</role>
    <role>Auditor</role>
+   <role>Author</role>
    <role>Manager</role>
   </permission>
   <permission type='tuple'>
diff --git a/bt5/erp5_trade/ModuleTemplateItem/sale_trade_condition_module.xml b/bt5/erp5_trade/ModuleTemplateItem/sale_trade_condition_module.xml
index abfd5fbf72..b5c94a1c51 100644
--- a/bt5/erp5_trade/ModuleTemplateItem/sale_trade_condition_module.xml
+++ b/bt5/erp5_trade/ModuleTemplateItem/sale_trade_condition_module.xml
@@ -1,4 +1,7 @@
 <module>
+ <category_list>
+  <category>business_application/12</category>
+ </category_list>
  <id>sale_trade_condition_module</id>
  <permission_list>
   <permission type='tuple'>
-- 
2.30.9