From 3a68963718006d121bdc89fec4e305e00c962b80 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Tue, 6 Oct 2009 11:11:16 +0000 Subject: [PATCH] add parent_title and parent_source_title columns git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29423 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../ApparelColourRangeVariation_view.xml | 1 + .../listbox.xml | 32 ++ .../listbox_parent_source_title.xml | 281 ++++++++++++++++++ ..._apparel_fabric_colour_variation_title.xml | 155 +++++++++- bt5/erp5_apparel/bt/revision | 2 +- 5 files changed, 464 insertions(+), 7 deletions(-) create mode 100644 bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/listbox_parent_source_title.xml diff --git a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view.xml b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view.xml index 2c2f5c0e40..ca3bacedc3 100644 --- a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view.xml +++ b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view.xml @@ -93,6 +93,7 @@ <value> <list> <string>my_title</string> + <string>listbox_parent_source_title</string> </list> </value> </item> diff --git a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/listbox.xml b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/listbox.xml index 6b9a4deaf9..f341695910 100644 --- a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/listbox.xml +++ b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/listbox.xml @@ -318,6 +318,14 @@ <string>source_reference</string> <string>Supplier Colour</string> </tuple> + <tuple> + <string>parent_title</string> + <string>Apparel Fabric</string> + </tuple> + <tuple> + <string>parent_source_title</string> + <string>Supplier</string> + </tuple> <tuple> <string>description</string> <string>Description</string> @@ -355,6 +363,14 @@ <string>source_reference</string> <string>Supplier Colour</string> </tuple> + <tuple> + <string>parent_title</string> + <string>Apparel Fabric</string> + </tuple> + <tuple> + <string>parent_source_title</string> + <string>Supplier</string> + </tuple> <tuple> <string>description</string> <string>Description</string> @@ -518,6 +534,14 @@ <string>source_reference</string> <string>Supplier Colour</string> </tuple> + <tuple> + <string>parent_title</string> + <string>Apparel Fabric</string> + </tuple> + <tuple> + <string>parent_source_title</string> + <string>Supplier</string> + </tuple> <tuple> <string>description</string> <string>Description</string> @@ -560,6 +584,14 @@ <string>source_reference</string> <string>Supplier Colour</string> </tuple> + <tuple> + <string>parent_title</string> + <string>Apparel Fabric</string> + </tuple> + <tuple> + <string>parent_source_title</string> + <string>Supplier</string> + </tuple> <tuple> <string>description</string> <string>Description</string> diff --git a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/listbox_parent_source_title.xml b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/listbox_parent_source_title.xml new file mode 100644 index 0000000000..71d2e7f03b --- /dev/null +++ b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/listbox_parent_source_title.xml @@ -0,0 +1,281 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>listbox_parent_source_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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>listbox_parent_source_title</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: cell.getParentValue().getSourceTitle()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/my_apparel_fabric_colour_variation_title.xml b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/my_apparel_fabric_colour_variation_title.xml index fdf4edac64..f0b7518e0f 100644 --- a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/my_apparel_fabric_colour_variation_title.xml +++ b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelColourRangeVariation_view/my_apparel_fabric_colour_variation_title.xml @@ -155,6 +155,14 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>allow_creation</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>allow_jump</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>alternate_name</string> </key> <value> <string></string> </value> @@ -167,6 +175,14 @@ <key> <string>catalog_index</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>container_getter_id</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>css_class</string> </key> <value> <string></string> </value> @@ -185,6 +201,14 @@ <key> <string>description</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>editable</string> </key> <value> <string></string> </value> @@ -201,6 +225,14 @@ <key> <string>extra</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>height</string> </key> <value> <string></string> </value> @@ -209,10 +241,18 @@ <key> <string>hidden</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>items</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>jump_method</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>max_length</string> </key> <value> <string></string> </value> @@ -225,10 +265,22 @@ <key> <string>max_lines</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>parameter_list</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>portal_type</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>proxy_listbox_ids</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>relation_form_id</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>relation_setter_id</string> </key> <value> <string></string> </value> @@ -237,6 +289,14 @@ <key> <string>required</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>title</string> </key> <value> <string></string> </value> @@ -268,6 +328,14 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>allow_creation</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>allow_jump</string> </key> + <value> <int>1</int> </value> + </item> <item> <key> <string>alternate_name</string> </key> <value> <string></string> </value> @@ -283,9 +351,30 @@ <item> <key> <string>columns</string> </key> <value> - <list/> + <list> + <tuple> + <string>Title</string> + <string>Title</string> + </tuple> + <tuple> + <string>Description</string> + <string>Description</string> + </tuple> + <tuple> + <string>parent_title</string> + <string>Apparel Fabric</string> + </tuple> + <tuple> + <string>parent_source_title</string> + <string>Supplier</string> + </tuple> + </list> </value> </item> + <item> + <key> <string>container_getter_id</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>css_class</string> </key> <value> <string></string> </value> @@ -304,6 +393,14 @@ <key> <string>description</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> <item> <key> <string>editable</string> </key> <value> <int>1</int> </value> @@ -320,6 +417,14 @@ <key> <string>extra</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <int>0</int> </value> + </item> <item> <key> <string>height</string> </key> <value> <int>5</int> </value> @@ -328,10 +433,20 @@ <key> <string>hidden</string> </key> <value> <int>0</int> </value> </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> <item> <key> <string>jump_method</string> </key> <value> <string>Base_jumpToRelatedDocument</string> </value> </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>max_length</string> </key> <value> <string></string> </value> @@ -344,6 +459,12 @@ <key> <string>max_lines</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>parameter_list</string> </key> + <value> + <list/> + </value> + </item> <item> <key> <string>portal_type</string> </key> <value> @@ -355,6 +476,21 @@ </list> </value> </item> + <item> + <key> <string>proxy_listbox_ids</string> </key> + <value> + <list> + <tuple> + <string>ApparelColourRangeVariation_view/listbox</string> + <string>Colour Variations</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>relation_form_id</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>relation_setter_id</string> </key> <value> <string></string> </value> @@ -363,6 +499,16 @@ <key> <string>required</string> </key> <value> <int>0</int> </value> </item> + <item> + <key> <string>size</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> + <list/> + </value> + </item> <item> <key> <string>title</string> </key> <value> <string>Apparel Fabric Colour Variation</string> </value> @@ -400,11 +546,8 @@ <record id="2" aka="AAAAAAAAAAI="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> diff --git a/bt5/erp5_apparel/bt/revision b/bt5/erp5_apparel/bt/revision index e77a96349c..a76c74dcec 100644 --- a/bt5/erp5_apparel/bt/revision +++ b/bt5/erp5_apparel/bt/revision @@ -1 +1 @@ -73 \ No newline at end of file +75 \ No newline at end of file -- 2.30.9