From a1a41f3abf2894ae57d6173595e5878126c2cf73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 17 Mar 2011 13:52:41 +0000 Subject: [PATCH] in trade model path view don't use terms for trade but use technical terms (like "Source Section"), because we cannot use trade term here as a trade model path can be use to generate movements outside of trade business field. Also allow to select any node, not only persons / organisations git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44384 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_trade/TradeModelPath_viewProfile.xml | 4 +- .../my_destination_administration_title.xml | 56 ++++++++++- .../my_destination_carrier_title.xml | 56 ++++++++++- .../my_destination_decision_title.xml | 13 ++- ...t.xml => my_destination_payment_title.xml} | 60 +++++++++++- .../my_destination_project_title.xml | 13 ++- .../my_destination_section_title.xml | 56 ++++++++++- .../my_destination_title.xml | 96 ++++++++++++++++++- .../my_source_administration_title.xml | 56 ++++++++++- .../my_source_carrier_title.xml | 56 ++++++++++- .../my_source_decision_title.xml | 13 ++- ...ayment.xml => my_source_payment_title.xml} | 60 +++++++++++- .../my_source_project_title.xml | 13 ++- .../my_source_section_title.xml | 56 ++++++++++- .../my_source_title.xml | 96 ++++++++++++++++++- bt5/erp5_trade/bt/revision | 2 +- 16 files changed, 685 insertions(+), 21 deletions(-) rename bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/{my_source_payment.xml => my_destination_payment_title.xml} (55%) rename bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/{my_destination_payment.xml => my_source_payment_title.xml} (56%) diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile.xml index d48296fe65..b399f877db 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile.xml @@ -77,7 +77,7 @@ <string>my_source_title</string> <string>my_source_decision_title</string> <string>my_source_administration_title</string> - <string>my_source_payment</string> + <string>my_source_payment_title</string> <string>my_source_project_title</string> <string>my_source_reference</string> <string>my_source_carrier_title</string> @@ -93,7 +93,7 @@ <string>my_destination_title</string> <string>my_destination_decision_title</string> <string>my_destination_administration_title</string> - <string>my_destination_payment</string> + <string>my_destination_payment_title</string> <string>my_destination_project_title</string> <string>my_destination_reference</string> <string>my_destination_carrier_title</string> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_administration_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_administration_title.xml index 6d4c45f7d8..6c6ff41115 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_administration_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_administration_title.xml @@ -9,7 +9,11 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>portal_type</string> + <string>title</string> + </list> </value> </item> <item> @@ -50,6 +54,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -58,10 +66,20 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -69,6 +87,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_destination_administration_title</string> </value> @@ -77,14 +99,46 @@ <key> <string>form_id</string> </key> <value> <string>Base_viewTradeFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Organisation</string> + <string>Organisation</string> + </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> + </list> + </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>Destination Administration</string> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in context.getPortalNodeTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_carrier_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_carrier_title.xml index 0b4f9b0ab8..fe775bee01 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_carrier_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_carrier_title.xml @@ -9,7 +9,11 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>portal_type</string> + <string>title</string> + </list> </value> </item> <item> @@ -50,6 +54,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -58,10 +66,20 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -69,6 +87,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_destination_carrier_title</string> </value> @@ -77,14 +99,46 @@ <key> <string>form_id</string> </key> <value> <string>Base_viewTradeFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Organisation</string> + <string>Organisation</string> + </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> + </list> + </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>Destination Carrier</string> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in context.getPortalNodeTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_decision_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_decision_title.xml index b98f68cbc5..5117c0a7fd 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_decision_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_decision_title.xml @@ -9,7 +9,10 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>title</string> + </list> </value> </item> <item> @@ -69,6 +72,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_destination_decision_title</string> </value> @@ -81,6 +88,10 @@ <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string>Destination Decision</string> </value> + </item> </dictionary> </value> </item> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_payment.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_payment_title.xml similarity index 55% rename from bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_payment.xml rename to bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_payment_title.xml index 808121a15a..8d2dff990b 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_payment.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_payment_title.xml @@ -9,12 +9,16 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>portal_type</string> + <string>title</string> + </list> </value> </item> <item> <key> <string>id</string> </key> - <value> <string>my_source_payment</string> </value> + <value> <string>my_destination_payment_title</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -50,6 +54,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -58,10 +66,20 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -69,22 +87,58 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> - <value> <string>my_view_mode_source_payment</string> </value> + <value> <string>my_view_mode_destination_title</string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string>Base_viewTradeFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Organisation</string> + <string>Organisation</string> + </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> + </list> + </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>Destination Payment</string> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in context.getPortalNodeTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_project_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_project_title.xml index 935ab0dcee..e73c834179 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_project_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_project_title.xml @@ -9,7 +9,10 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>title</string> + </list> </value> </item> <item> @@ -69,6 +72,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_destination_project_title</string> </value> @@ -81,6 +88,10 @@ <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string>Destination Project</string> </value> + </item> </dictionary> </value> </item> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_section_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_section_title.xml index e0e60d5139..880c93cf7b 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_section_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_section_title.xml @@ -9,7 +9,11 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>portal_type</string> + <string>title</string> + </list> </value> </item> <item> @@ -50,6 +54,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -58,10 +66,20 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -69,6 +87,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_destination_section_title</string> </value> @@ -77,14 +99,46 @@ <key> <string>form_id</string> </key> <value> <string>Base_viewTradeFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Organisation</string> + <string>Organisation</string> + </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> + </list> + </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>Destination Section</string> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in context.getPortalNodeTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_title.xml index 7a9cad918e..72673a9d3c 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_title.xml @@ -9,7 +9,12 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>portal_type</string> + <string>proxy_listbox_ids</string> + <string>title</string> + </list> </value> </item> <item> @@ -50,6 +55,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -58,10 +67,24 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>proxy_listbox_ids</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -69,6 +92,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_destination_title</string> </value> @@ -77,14 +104,81 @@ <key> <string>form_id</string> </key> <value> <string>Base_viewTradeFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Organisation</string> + <string>Organisation</string> + </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> + <tuple> + <string>Account</string> + <string>Account</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>proxy_listbox_ids</string> </key> + <value> + <list> + <tuple> + <string>Base_viewRelatedObjectListBase/listbox</string> + <string>All</string> + </tuple> + <tuple> + <string>ERP5Site_viewClientNodeList/listbox</string> + <string>Clients</string> + </tuple> + <tuple> + <string>ERP5Site_viewSupplierNodeList/listbox</string> + <string>Suppliers</string> + </tuple> + <tuple> + <string>OrganisationModule_viewOrganisationList/listbox</string> + <string>Organisations</string> + </tuple> + <tuple> + <string>PersonModule_viewPersonList/listbox</string> + <string>Persons</string> + </tuple> + <tuple> + <string>AccountModule_viewAccountList/listbox</string> + <string>Accounts</string> + </tuple> + </list> + </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>Destination</string> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in context.getPortalNodeTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_administration_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_administration_title.xml index f143ab0372..08b9cdbc43 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_administration_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_administration_title.xml @@ -9,7 +9,11 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>portal_type</string> + <string>title</string> + </list> </value> </item> <item> @@ -50,6 +54,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -58,10 +66,20 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -69,6 +87,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_source_administration_title</string> </value> @@ -77,14 +99,46 @@ <key> <string>form_id</string> </key> <value> <string>Base_viewTradeFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Organisation</string> + <string>Organisation</string> + </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> + </list> + </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>Source Administration</string> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in context.getPortalNodeTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_carrier_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_carrier_title.xml index 97437b655f..2eeb6ff61b 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_carrier_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_carrier_title.xml @@ -9,7 +9,11 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>portal_type</string> + <string>title</string> + </list> </value> </item> <item> @@ -50,6 +54,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -58,10 +66,20 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -69,6 +87,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_source_carrier_title</string> </value> @@ -77,14 +99,46 @@ <key> <string>form_id</string> </key> <value> <string>Base_viewTradeFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Organisation</string> + <string>Organisation</string> + </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> + </list> + </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>Source Carrier</string> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in context.getPortalNodeTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_decision_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_decision_title.xml index f692f155ae..4b15559432 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_decision_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_decision_title.xml @@ -9,7 +9,10 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>title</string> + </list> </value> </item> <item> @@ -69,6 +72,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_source_decision_title</string> </value> @@ -81,6 +88,10 @@ <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string>Source Decision</string> </value> + </item> </dictionary> </value> </item> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_payment.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_payment_title.xml similarity index 56% rename from bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_payment.xml rename to bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_payment_title.xml index aced695d18..3948183ad5 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_destination_payment.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_payment_title.xml @@ -9,12 +9,16 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>portal_type</string> + <string>title</string> + </list> </value> </item> <item> <key> <string>id</string> </key> - <value> <string>my_destination_payment</string> </value> + <value> <string>my_source_payment_title</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -50,6 +54,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -58,10 +66,20 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -69,22 +87,58 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> - <value> <string>my_view_mode_destination_payment</string> </value> + <value> <string>my_view_mode_source_title</string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string>Base_viewTradeFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Organisation</string> + <string>Organisation</string> + </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> + </list> + </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>Source Payment</string> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in context.getPortalNodeTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_project_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_project_title.xml index cbc0849b6b..566b154ee8 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_project_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_project_title.xml @@ -9,7 +9,10 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>title</string> + </list> </value> </item> <item> @@ -69,6 +72,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_source_project_title</string> </value> @@ -81,6 +88,10 @@ <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string>Source Project</string> </value> + </item> </dictionary> </value> </item> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_section_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_section_title.xml index ede173029a..a7a48502be 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_section_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_section_title.xml @@ -9,7 +9,11 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>portal_type</string> + <string>title</string> + </list> </value> </item> <item> @@ -50,6 +54,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -58,10 +66,20 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -69,6 +87,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_source_section_title</string> </value> @@ -77,14 +99,46 @@ <key> <string>form_id</string> </key> <value> <string>Base_viewTradeFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Organisation</string> + <string>Organisation</string> + </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> + </list> + </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>Source Section</string> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in context.getPortalNodeTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_title.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_title.xml index 12e747d387..b361359531 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_title.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_viewProfile/my_source_title.xml @@ -9,7 +9,12 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>description</string> + <string>portal_type</string> + <string>proxy_listbox_ids</string> + <string>title</string> + </list> </value> </item> <item> @@ -50,6 +55,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -58,10 +67,24 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>proxy_listbox_ids</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -69,6 +92,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_view_mode_source_title</string> </value> @@ -77,14 +104,81 @@ <key> <string>form_id</string> </key> <value> <string>Base_viewTradeFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Organisation</string> + <string>Organisation</string> + </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> + <tuple> + <string>Account</string> + <string>Account</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>proxy_listbox_ids</string> </key> + <value> + <list> + <tuple> + <string>Base_viewRelatedObjectListBase/listbox</string> + <string>All</string> + </tuple> + <tuple> + <string>ERP5Site_viewSupplierNodeList/listbox</string> + <string>Suppliers</string> + </tuple> + <tuple> + <string>ERP5Site_viewClientNodeList/listbox</string> + <string>Clients</string> + </tuple> + <tuple> + <string>OrganisationModule_viewOrganisationList/listbox</string> + <string>Organisations</string> + </tuple> + <tuple> + <string>PersonModule_viewPersonList/listbox</string> + <string>Persons</string> + </tuple> + <tuple> + <string>AccountModule_viewAccountList/listbox</string> + <string>Accounts</string> + </tuple> + </list> + </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>Source</string> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in context.getPortalNodeTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision index 76482c7d39..176746d5a9 100644 --- a/bt5/erp5_trade/bt/revision +++ b/bt5/erp5_trade/bt/revision @@ -1 +1 @@ -1112 \ No newline at end of file +1113 \ No newline at end of file -- 2.30.9