From 92d8556a0285890047fe7e11b8b65f7a9cd5a2e1 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Thu, 11 Jun 2015 09:44:22 +0000
Subject: [PATCH] mrp_item: add business template to handle items on mrp

For now, enable fast inputs for items on mrp movements, and add aggregate view on mrp deliveries
---
 .../item_creation.xml                         | 94 +++++++++++++++++++
 .../select_item_fast_input.xml                | 79 ++++++++++++++++
 .../Production%20Order/aggregate_item.xml     | 79 ++++++++++++++++
 .../item_creation.xml                         | 94 +++++++++++++++++++
 .../select_item_fast_input.xml                | 79 ++++++++++++++++
 .../aggregate_item.xml                        | 79 ++++++++++++++++
 .../item_creation.xml                         | 94 +++++++++++++++++++
 .../select_item_fast_input.xml                | 79 ++++++++++++++++
 .../Production%20Report/aggregate_item.xml    | 79 ++++++++++++++++
 erp5_mrp_item/bt/copyright_list               |  1 +
 erp5_mrp_item/bt/dependency_list              |  2 +
 erp5_mrp_item/bt/description                  |  1 +
 erp5_mrp_item/bt/license                      |  1 +
 erp5_mrp_item/bt/template_action_path_list    |  9 ++
 erp5_mrp_item/bt/template_format_version      |  1 +
 erp5_mrp_item/bt/title                        |  1 +
 16 files changed, 772 insertions(+)
 create mode 100644 erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order%20Line/item_creation.xml
 create mode 100644 erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order%20Line/select_item_fast_input.xml
 create mode 100644 erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order/aggregate_item.xml
 create mode 100644 erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List%20Line/item_creation.xml
 create mode 100644 erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List%20Line/select_item_fast_input.xml
 create mode 100644 erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List/aggregate_item.xml
 create mode 100644 erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report%20Line/item_creation.xml
 create mode 100644 erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report%20Line/select_item_fast_input.xml
 create mode 100644 erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report/aggregate_item.xml
 create mode 100644 erp5_mrp_item/bt/copyright_list
 create mode 100644 erp5_mrp_item/bt/dependency_list
 create mode 100644 erp5_mrp_item/bt/description
 create mode 100644 erp5_mrp_item/bt/license
 create mode 100644 erp5_mrp_item/bt/template_action_path_list
 create mode 100644 erp5_mrp_item/bt/template_format_version
 create mode 100644 erp5_mrp_item/bt/title

diff --git a/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order%20Line/item_creation.xml b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order%20Line/item_creation.xml
new file mode 100644
index 0000000000..c032e7956f
--- /dev/null
+++ b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order%20Line/item_creation.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_fast_input</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_fast_input</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>item_creation</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>4.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Create Items</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/DeliveryLine_viewItemCreationDialog</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python: object.getResource() and object.getResourceValue().getAggregatedPortalTypeList()</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order%20Line/select_item_fast_input.xml b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order%20Line/select_item_fast_input.xml
new file mode 100644
index 0000000000..fc209dd319
--- /dev/null
+++ b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order%20Line/select_item_fast_input.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_fast_input</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_fast_input</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>select_item_fast_input</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>3.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Select Items</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/DeliveryLine_viewSelectItemListDialog?reset=1</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order/aggregate_item.xml b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order/aggregate_item.xml
new file mode 100644
index 0000000000..2475a40b4e
--- /dev/null
+++ b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Order/aggregate_item.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_view</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>aggregate_item</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>6.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Aggregated Items</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Delivery_viewAggregatedItemList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List%20Line/item_creation.xml b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List%20Line/item_creation.xml
new file mode 100644
index 0000000000..c032e7956f
--- /dev/null
+++ b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List%20Line/item_creation.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_fast_input</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_fast_input</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>item_creation</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>4.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Create Items</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/DeliveryLine_viewItemCreationDialog</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python: object.getResource() and object.getResourceValue().getAggregatedPortalTypeList()</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List%20Line/select_item_fast_input.xml b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List%20Line/select_item_fast_input.xml
new file mode 100644
index 0000000000..fc209dd319
--- /dev/null
+++ b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List%20Line/select_item_fast_input.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_fast_input</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_fast_input</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>select_item_fast_input</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>3.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Select Items</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/DeliveryLine_viewSelectItemListDialog?reset=1</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List/aggregate_item.xml b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List/aggregate_item.xml
new file mode 100644
index 0000000000..2475a40b4e
--- /dev/null
+++ b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Packing%20List/aggregate_item.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_view</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>aggregate_item</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>6.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Aggregated Items</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Delivery_viewAggregatedItemList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report%20Line/item_creation.xml b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report%20Line/item_creation.xml
new file mode 100644
index 0000000000..c032e7956f
--- /dev/null
+++ b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report%20Line/item_creation.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_fast_input</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_fast_input</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>item_creation</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>4.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Create Items</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/DeliveryLine_viewItemCreationDialog</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python: object.getResource() and object.getResourceValue().getAggregatedPortalTypeList()</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report%20Line/select_item_fast_input.xml b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report%20Line/select_item_fast_input.xml
new file mode 100644
index 0000000000..fc209dd319
--- /dev/null
+++ b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report%20Line/select_item_fast_input.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_fast_input</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_fast_input</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>select_item_fast_input</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>3.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Select Items</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/DeliveryLine_viewSelectItemListDialog?reset=1</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report/aggregate_item.xml b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report/aggregate_item.xml
new file mode 100644
index 0000000000..2475a40b4e
--- /dev/null
+++ b/erp5_mrp_item/ActionTemplateItem/portal_types/Production%20Report/aggregate_item.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_view</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>aggregate_item</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>6.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Aggregated Items</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Delivery_viewAggregatedItemList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/erp5_mrp_item/bt/copyright_list b/erp5_mrp_item/bt/copyright_list
new file mode 100644
index 0000000000..52d56064c4
--- /dev/null
+++ b/erp5_mrp_item/bt/copyright_list
@@ -0,0 +1 @@
+Copyright (c) 2015 Nexedi SARL
\ No newline at end of file
diff --git a/erp5_mrp_item/bt/dependency_list b/erp5_mrp_item/bt/dependency_list
new file mode 100644
index 0000000000..c763fd218c
--- /dev/null
+++ b/erp5_mrp_item/bt/dependency_list
@@ -0,0 +1,2 @@
+erp5_item
+erp5_mrp
\ No newline at end of file
diff --git a/erp5_mrp_item/bt/description b/erp5_mrp_item/bt/description
new file mode 100644
index 0000000000..6e7f25dad2
--- /dev/null
+++ b/erp5_mrp_item/bt/description
@@ -0,0 +1 @@
+Use to add traceability of resources to Material Resource Planning
\ No newline at end of file
diff --git a/erp5_mrp_item/bt/license b/erp5_mrp_item/bt/license
new file mode 100644
index 0000000000..3a3e12bcad
--- /dev/null
+++ b/erp5_mrp_item/bt/license
@@ -0,0 +1 @@
+GPL
\ No newline at end of file
diff --git a/erp5_mrp_item/bt/template_action_path_list b/erp5_mrp_item/bt/template_action_path_list
new file mode 100644
index 0000000000..6d6fbe535f
--- /dev/null
+++ b/erp5_mrp_item/bt/template_action_path_list
@@ -0,0 +1,9 @@
+Production Order Line | item_creation
+Production Order Line | select_item_fast_input
+Production Order | aggregate_item
+Production Packing List Line | item_creation
+Production Packing List Line | select_item_fast_input
+Production Packing List | aggregate_item
+Production Report Line | item_creation
+Production Report Line | select_item_fast_input
+Production Report | aggregate_item
\ No newline at end of file
diff --git a/erp5_mrp_item/bt/template_format_version b/erp5_mrp_item/bt/template_format_version
new file mode 100644
index 0000000000..56a6051ca2
--- /dev/null
+++ b/erp5_mrp_item/bt/template_format_version
@@ -0,0 +1 @@
+1
\ No newline at end of file
diff --git a/erp5_mrp_item/bt/title b/erp5_mrp_item/bt/title
new file mode 100644
index 0000000000..c04913c1ae
--- /dev/null
+++ b/erp5_mrp_item/bt/title
@@ -0,0 +1 @@
+erp5_mrp_item
\ No newline at end of file
-- 
2.30.9