From 7e4262d6ca06887ebb64f15c5942cd4e47df1814 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Thu, 30 Apr 2009 14:03:31 +0000
Subject: [PATCH] - make it possible to specialise Trade Model Lines on
 delivery itself - add form to view Trade Model Lines on supported deliveries

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26746 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../view_trade_model_line_list.xml            |  77 +++++++++
 .../view_trade_model_line_list.xml            |  77 +++++++++
 .../view_trade_model_line_list.xml            |  77 +++++++++
 .../view_trade_model_line_list.xml            |  77 +++++++++
 .../allowed_content_types.xml                 |  14 +-
 .../Delivery_viewTradeModelLineList.xml       | 155 +++++++++++++++++
 .../listbox.xml                               | 160 ++++++++++++++++++
 .../listbox_price.xml                         |  93 ++++++++++
 .../my_title.xml                              |  99 +++++++++++
 bt5/erp5_bpm/bt/revision                      |   2 +-
 bt5/erp5_bpm/bt/template_action_path_list     |   4 +
 ...late_portal_type_allowed_content_type_list |   4 +
 12 files changed, 837 insertions(+), 2 deletions(-)
 create mode 100644 bt5/erp5_bpm/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_trade_model_line_list.xml
 create mode 100644 bt5/erp5_bpm/ActionTemplateItem/portal_types/Purchase%20Order/view_trade_model_line_list.xml
 create mode 100644 bt5/erp5_bpm/ActionTemplateItem/portal_types/Sale%20Invoice%20Transaction/view_trade_model_line_list.xml
 create mode 100644 bt5/erp5_bpm/ActionTemplateItem/portal_types/Sale%20Order/view_trade_model_line_list.xml
 create mode 100644 bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList.xml
 create mode 100644 bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/listbox.xml
 create mode 100644 bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/listbox_price.xml
 create mode 100644 bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/my_title.xml

diff --git a/bt5/erp5_bpm/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_trade_model_line_list.xml b/bt5/erp5_bpm/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_trade_model_line_list.xml
new file mode 100644
index 0000000000..89b542c6b0
--- /dev/null
+++ b/bt5/erp5_bpm/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_trade_model_line_list.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </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>view_trade_model_line_list</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>3.3</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Trade Model Lines</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Delivery_viewTradeModelLineList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_bpm/ActionTemplateItem/portal_types/Purchase%20Order/view_trade_model_line_list.xml b/bt5/erp5_bpm/ActionTemplateItem/portal_types/Purchase%20Order/view_trade_model_line_list.xml
new file mode 100644
index 0000000000..89b542c6b0
--- /dev/null
+++ b/bt5/erp5_bpm/ActionTemplateItem/portal_types/Purchase%20Order/view_trade_model_line_list.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </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>view_trade_model_line_list</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>3.3</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Trade Model Lines</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Delivery_viewTradeModelLineList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_bpm/ActionTemplateItem/portal_types/Sale%20Invoice%20Transaction/view_trade_model_line_list.xml b/bt5/erp5_bpm/ActionTemplateItem/portal_types/Sale%20Invoice%20Transaction/view_trade_model_line_list.xml
new file mode 100644
index 0000000000..89b542c6b0
--- /dev/null
+++ b/bt5/erp5_bpm/ActionTemplateItem/portal_types/Sale%20Invoice%20Transaction/view_trade_model_line_list.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </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>view_trade_model_line_list</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>3.3</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Trade Model Lines</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Delivery_viewTradeModelLineList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_bpm/ActionTemplateItem/portal_types/Sale%20Order/view_trade_model_line_list.xml b/bt5/erp5_bpm/ActionTemplateItem/portal_types/Sale%20Order/view_trade_model_line_list.xml
new file mode 100644
index 0000000000..89b542c6b0
--- /dev/null
+++ b/bt5/erp5_bpm/ActionTemplateItem/portal_types/Sale%20Order/view_trade_model_line_list.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </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>view_trade_model_line_list</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>3.3</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Trade Model Lines</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Delivery_viewTradeModelLineList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_bpm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_bpm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index 034585c664..3218380cc2 100644
--- a/bt5/erp5_bpm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_bpm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -1,17 +1,29 @@
 <allowed_content_type_list>
  <portal_type id="Business Process">
-  <item>Business State</item>
   <item>Business Path</item>
+  <item>Business State</item>
  </portal_type>
  <portal_type id="Business Process Module">
   <item>Business Process</item>
  </portal_type>
+ <portal_type id="Purchase Invoice Transaction">
+  <item>Trade Model Line</item>
+ </portal_type>
+ <portal_type id="Purchase Order">
+  <item>Trade Model Line</item>
+ </portal_type>
  <portal_type id="Purchase Trade Condition">
   <item>Trade Model Line</item>
  </portal_type>
  <portal_type id="Rule Tool">
   <item>Trade Model Rule</item>
  </portal_type>
+ <portal_type id="Sale Invoice Transaction">
+  <item>Trade Model Line</item>
+ </portal_type>
+ <portal_type id="Sale Order">
+  <item>Trade Model Line</item>
+ </portal_type>
  <portal_type id="Sale Trade Condition">
   <item>Trade Model Line</item>
  </portal_type>
diff --git a/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList.xml b/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList.xml
new file mode 100644
index 0000000000..d05c291327
--- /dev/null
+++ b/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList.xml
@@ -0,0 +1,155 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ERP5Form" module="Products.ERP5Form.Form"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary/>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_objects</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>action</string> </key>
+            <value> <string>Base_edit</string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>edit_order</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
+        <item>
+            <key> <string>encoding</string> </key>
+            <value> <string>UTF-8</string> </value>
+        </item>
+        <item>
+            <key> <string>enctype</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <list>
+                <string>left</string>
+                <string>right</string>
+                <string>center</string>
+                <string>bottom</string>
+                <string>hidden</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>groups</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>bottom</string> </key>
+                    <value>
+                      <list>
+                        <string>listbox</string>
+                      </list>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>center</string> </key>
+                    <value>
+                      <list>
+                        <string>my_title</string>
+                      </list>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value>
+                      <list>
+                        <string>listbox_price</string>
+                      </list>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>left</string> </key>
+                    <value>
+                      <list/>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>right</string> </key>
+                    <value>
+                      <list/>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Delivery_viewTradeModelLineList</string> </value>
+        </item>
+        <item>
+            <key> <string>method</string> </key>
+            <value> <string>POST</string> </value>
+        </item>
+        <item>
+            <key> <string>name</string> </key>
+            <value> <string>Delivery_viewTradeModelLineList</string> </value>
+        </item>
+        <item>
+            <key> <string>pt</string> </key>
+            <value> <string>form_view</string> </value>
+        </item>
+        <item>
+            <key> <string>row_length</string> </key>
+            <value> <int>4</int> </value>
+        </item>
+        <item>
+            <key> <string>stored_encoding</string> </key>
+            <value> <string>UTF-8</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Trade Model Lines</string> </value>
+        </item>
+        <item>
+            <key> <string>unicode_mode</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>update_action</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/listbox.xml b/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/listbox.xml
new file mode 100644
index 0000000000..adf17e036c
--- /dev/null
+++ b/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/listbox.xml
@@ -0,0 +1,160 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>delegated_list</string> </key>
+            <value>
+              <list>
+                <string>title</string>
+                <string>columns</string>
+                <string>selection_name</string>
+                <string>portal_types</string>
+                <string>editable_columns</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>listbox</string> </value>
+        </item>
+        <item>
+            <key> <string>message_values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>external_validator_failed</string> </key>
+                    <value> <string>The input failed the external validator.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>columns</string> </key>
+                    <value>
+                      <list>
+                        <tuple>
+                          <string>title</string>
+                          <string>Title</string>
+                        </tuple>
+                        <tuple>
+                          <string>resource_title</string>
+                          <string>Service</string>
+                        </tuple>
+                        <tuple>
+                          <string>price</string>
+                          <string>Price</string>
+                        </tuple>
+                        <tuple>
+                          <string>base_application_title_list</string>
+                          <string>Base Applications</string>
+                        </tuple>
+                        <tuple>
+                          <string>base_contribution_title_list</string>
+                          <string>Base Contributions</string>
+                        </tuple>
+                        <tuple>
+                          <string>trade_phase_title</string>
+                          <string>Trade Phase</string>
+                        </tuple>
+                      </list>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>editable_columns</string> </key>
+                    <value>
+                      <list>
+                        <tuple>
+                          <string>price</string>
+                          <string>price</string>
+                        </tuple>
+                      </list>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string>my_view_mode_listbox</string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string>Base_viewFieldLibrary</string> </value>
+                </item>
+                <item>
+                    <key> <string>portal_types</string> </key>
+                    <value>
+                      <list>
+                        <tuple>
+                          <string>Trade Model Line</string>
+                          <string>Trade Model Line</string>
+                        </tuple>
+                      </list>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>selection_name</string> </key>
+                    <value> <string>trade_condition_view_trade_model_line_list_selection</string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string>Click to edit the target</string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string>Trade Model Lines</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/listbox_price.xml b/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/listbox_price.xml
new file mode 100644
index 0000000000..d05aeb5e6b
--- /dev/null
+++ b/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/listbox_price.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>delegated_list</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>listbox_price</string> </value>
+        </item>
+        <item>
+            <key> <string>message_values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>external_validator_failed</string> </key>
+                    <value> <string>The input failed the external validator.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string>my_percent</string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string>Base_viewFieldLibrary</string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string>Click to edit the target</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/my_title.xml b/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/my_title.xml
new file mode 100644
index 0000000000..318d6ff5dd
--- /dev/null
+++ b/bt5/erp5_bpm/SkinTemplateItem/portal_skins/erp5_bpm/Delivery_viewTradeModelLineList/my_title.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>delegated_list</string> </key>
+            <value>
+              <list>
+                <string>editable</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>my_title</string> </value>
+        </item>
+        <item>
+            <key> <string>message_values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>external_validator_failed</string> </key>
+                    <value> <string>The input failed the external validator.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string>my_title</string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string>Base_viewFieldLibrary</string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string>Click to edit the target</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_bpm/bt/revision b/bt5/erp5_bpm/bt/revision
index a3090d211b..9a1371776c 100644
--- a/bt5/erp5_bpm/bt/revision
+++ b/bt5/erp5_bpm/bt/revision
@@ -1 +1 @@
-168
\ No newline at end of file
+169
\ No newline at end of file
diff --git a/bt5/erp5_bpm/bt/template_action_path_list b/bt5/erp5_bpm/bt/template_action_path_list
index 895d3afec9..2efac32a87 100644
--- a/bt5/erp5_bpm/bt/template_action_path_list
+++ b/bt5/erp5_bpm/bt/template_action_path_list
@@ -7,12 +7,16 @@ Business Process | view_supply_state_list
 Business State | view
 Invoice Line | view_trade_model
 Purchase Invoice Transaction | view_trade_model
+Purchase Invoice Transaction | view_trade_model_line_list
 Purchase Order Line | view_trade_model
 Purchase Order | view_trade_model
+Purchase Order | view_trade_model_line_list
 Purchase Trade Condition | view_trade_model_line_list
 Sale Invoice Transaction | view_trade_model
+Sale Invoice Transaction | view_trade_model_line_list
 Sale Order Line | view_trade_model
 Sale Order | view_trade_model
+Sale Order | view_trade_model_line_list
 Sale Trade Condition | view_trade_model_line_list
 System Preference | bpm_preference
 Trade Model Cell | view
diff --git a/bt5/erp5_bpm/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_bpm/bt/template_portal_type_allowed_content_type_list
index 59d479a47a..f2ac67db43 100644
--- a/bt5/erp5_bpm/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_bpm/bt/template_portal_type_allowed_content_type_list
@@ -1,8 +1,12 @@
 Business Process Module | Business Process
 Business Process | Business Path
 Business Process | Business State
+Purchase Invoice Transaction | Trade Model Line
+Purchase Order | Trade Model Line
 Purchase Trade Condition | Trade Model Line
 Rule Tool | Trade Model Rule
+Sale Invoice Transaction | Trade Model Line
+Sale Order | Trade Model Line
 Sale Trade Condition | Trade Model Line
 Trade Model Line | Trade Model Cell
 Trade Model Rule | Category Divergence Tester
-- 
2.30.9