Commit ba0334c2 authored by Jérome Perrin's avatar Jérome Perrin

configurator: fix module listbox proxy field

* it should be a *list* mode listbox (it was a view mode)
* listbox column title should be the portal type name ( no written rule for this apparently )
* listbox title should be plural of portal type https://www.erp5.com/documentation/developer/guideline/module/erp5-Guideline.Module.Creation/#set-listbox-title-to-plural-of-portal-type-title-if-applicable
parent ae0d8745
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
<key> <string>left</string> </key> <key> <string>left</string> </key>
<value> <value>
<list> <list>
<string>my_view_mode_listbox_business_configuration</string> <string>my_list_mode_listbox_business_configuration</string>
<string>my_view_mode_creation_date</string> <string>my_view_mode_creation_date</string>
<string>my_view_mode_translated_simulation_state_title</string> <string>my_view_mode_translated_simulation_state_title</string>
<string>my_view_mode_translated_validation_state_title</string> <string>my_view_mode_translated_validation_state_title</string>
......
...@@ -10,11 +10,8 @@ ...@@ -10,11 +10,8 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>all_columns</string>
<string>columns</string> <string>columns</string>
<string>editable_columns</string>
<string>portal_types</string> <string>portal_types</string>
<string>search_columns</string>
<string>selection_name</string> <string>selection_name</string>
<string>sort</string> <string>sort</string>
<string>title</string> <string>title</string>
...@@ -23,7 +20,7 @@ ...@@ -23,7 +20,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_view_mode_listbox_business_configuration</string> </value> <value> <string>my_list_mode_listbox_business_configuration</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -79,44 +76,13 @@ ...@@ -79,44 +76,13 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>all_columns</string> </key> <key> <string>columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
<string>reference</string> <string>title</string>
<string>Site ID</string> <string>Business Configuration</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Workflow</string>
</tuple>
<tuple>
<string>translated_validation_state_title</string>
<string>Validation State</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>Installation State</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>Creation Date</string>
</tuple>
<tuple>
<string>comment</string>
<string>Comments</string>
</tuple>
<tuple>
<string>getCurrentStateTitle</string>
<string>Wizard State</string>
</tuple> </tuple>
</list>
</value>
</item>
<item>
<key> <string>columns</string> </key>
<value>
<list>
<tuple> <tuple>
<string>reference</string> <string>reference</string>
<string>Reference</string> <string>Reference</string>
...@@ -140,17 +106,6 @@ ...@@ -140,17 +106,6 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>editable_columns</string> </key>
<value>
<list>
<tuple>
<string>creation_date</string>
<string>creation_date</string>
</tuple>
</list>
</value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_list_mode_listbox</string> </value> <value> <string>my_list_mode_listbox</string> </value>
...@@ -170,33 +125,6 @@ ...@@ -170,33 +125,6 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>search_columns</string> </key>
<value>
<list>
<tuple>
<string>reference</string>
<string>Reference</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Workflow</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>Creation Date</string>
</tuple>
<tuple>
<string>translated_validation_state_title</string>
<string>State</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>Installation State</string>
</tuple>
</list>
</value>
</item>
<item> <item>
<key> <string>selection_name</string> </key> <key> <string>selection_name</string> </key>
<value> <string>business_configuration_module_selection</string> </value> <value> <string>business_configuration_module_selection</string> </value>
...@@ -218,7 +146,7 @@ ...@@ -218,7 +146,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Business Configuration</string> </value> <value> <string>Business Configurations</string> </value>
</item> </item>
</dictionary> </dictionary>
</value> </value>
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_view_mode_listbox_business_configuration</string> </value> <value> <string>my_list_mode_listbox_business_configuration</string> </value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment