From 4d188a69955f583fcade55ad4633c8d8c496e313 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Fri, 12 Jun 2015 18:38:58 +0900 Subject: [PATCH] erp5_trade: Fix Business Process trade_phase field. As there may be several trade_phase which could be set on a Trade Model Path, all of them should be displayed in ListBox and not only the first one. --- .../BusinessProcess_viewTradeModelPath.xml | 1 + .../listbox.xml | 4 +- .../listbox_trade_phase_title_list.xml | 90 +++++++++++++++++++ bt5/erp5_trade/bt/change_log | 3 + 4 files changed, 96 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath/listbox_trade_phase_title_list.xml diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath.xml index dfe29c4886..dd617638cb 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath.xml @@ -92,6 +92,7 @@ <value> <list> <string>listbox_int_index</string> + <string>listbox_trade_phase_title_list</string> </list> </value> </item> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath/listbox.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath/listbox.xml index 61356a0823..bc5d83d27f 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath/listbox.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath/listbox.xml @@ -95,7 +95,7 @@ <string>Reference</string> </tuple> <tuple> - <string>trade_phase_title</string> + <string>trade_phase_title_list</string> <string>Trade Phase</string> </tuple> <tuple> @@ -226,7 +226,7 @@ <string>Reference</string> </tuple> <tuple> - <string>trade_phase_title</string> + <string>trade_phase_title_list</string> <string>Trade Phase</string> </tuple> <tuple> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath/listbox_trade_phase_title_list.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath/listbox_trade_phase_title_list.xml new file mode 100644 index 0000000000..d6c96abc96 --- /dev/null +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/BusinessProcess_viewTradeModelPath/listbox_trade_phase_title_list.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox_trade_phase_title_list</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_string_field</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_trade/bt/change_log b/bt5/erp5_trade/bt/change_log index be1fb23b8b..b2f6ef5392 100644 --- a/bt5/erp5_trade/bt/change_log +++ b/bt5/erp5_trade/bt/change_log @@ -1,3 +1,6 @@ +2015-06-12 arnaud.fontaine +* As there may be several trade_phase which could be set on a Trade Model Path, all of them should be displayed in ListBox and not only the first one. + 2015-06-12 arnaud.fontaine * Remove fields which have never been used on TradeModelPath view. -- 2.30.9