From 1f5e9e6f83dd26fc55a0ef16337c08b90da9162f Mon Sep 17 00:00:00 2001 From: Valentin Benozillo <valentin.benozillo@nexedi.com> Date: Wed, 12 Feb 2020 07:36:34 +0000 Subject: [PATCH] erp5_crm: Add insolvency_proceeding preferences --- .../SystemPreference_viewCustomerRelation.xml | 2 + ...eferred_insolvency_proceeding_resource.xml | 126 ++++++++++++++++++ ...eferred_insolvency_proceeding_use_list.xml | 126 ++++++++++++++++++ 3 files changed, 254 insertions(+) create mode 100644 bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation/my_preferred_insolvency_proceeding_resource.xml create mode 100644 bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation/my_preferred_insolvency_proceeding_use_list.xml diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation.xml index 725ccf4471..b07732c210 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation.xml @@ -93,6 +93,8 @@ <string>my_preferred_event_assessment_form_id_list</string> <string>my_preferred_event_sender_email</string> <string>my_preferred_customer_relation_language_list</string> + <string>my_preferred_insolvency_proceeding_use_list</string> + <string>my_preferred_insolvency_proceeding_resource</string> </list> </value> </item> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation/my_preferred_insolvency_proceeding_resource.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation/my_preferred_insolvency_proceeding_resource.xml new file mode 100644 index 0000000000..083aa24c55 --- /dev/null +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation/my_preferred_insolvency_proceeding_resource.xml @@ -0,0 +1,126 @@ +<?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> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_preferred_insolvency_proceeding_resource</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>items</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> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_list_field</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <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>Preferred Resource for Insolvency Proceeding</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: [(\'\', \'\')] + [(resource.getTitle(), resource.getRelativeUrl()) for resource in here.getPortalObject().portal_catalog(portal_type=here.getPortalObject().getPortalResourceTypeList(), validation_state=\'validated\', use_uid=here.getPortalObject().portal_categories.getCategoryUid(here.getPreference(field.getId().replace(\'my_\', \'\').replace(\'_resource\', \'_use\')), base_category=\'use\'))]</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation/my_preferred_insolvency_proceeding_use_list.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation/my_preferred_insolvency_proceeding_use_list.xml new file mode 100644 index 0000000000..6e72e10b35 --- /dev/null +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SystemPreference_viewCustomerRelation/my_preferred_insolvency_proceeding_use_list.xml @@ -0,0 +1,126 @@ +<?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> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_preferred_insolvency_proceeding_use_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>items</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> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_multi_list_field</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <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>Insolvency Proceeding Uses</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: getattr(here.portal_categories.use, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> -- 2.30.9