diff --git a/bt5/erp5_apparel/ActionTemplateItem/portal_types/Apparel%20Fabric/view_measure.xml b/bt5/erp5_apparel/ActionTemplateItem/portal_types/Apparel%20Fabric/view_measure.xml new file mode 100644 index 0000000000000000000000000000000000000000..ec6380d28e89ecdd3786f77568739ac2038f3e2c --- /dev/null +++ b/bt5/erp5_apparel/ActionTemplateItem/portal_types/Apparel%20Fabric/view_measure.xml @@ -0,0 +1,77 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view_measure</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.5</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Measure</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Resource_viewMeasure</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_apparel/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_apparel/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index 00d12b9abb8f873f246adf26f685b1e67ff71d49..b8c7ca6a0cb6c3bc1c1234d99be85eb2c4971b4e 100644 --- a/bt5/erp5_apparel/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_apparel/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -43,6 +43,7 @@ <item>Purchase Supply Line</item> <item>Supply Line</item> <item>Mapped Value</item> + <item>Measure</item> </portal_type> <portal_type id="Apparel Fabric Item"> <item>Apparel Fabric Item</item> diff --git a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_view.xml b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_view.xml index bc40a6299682a1a3b1050476a28a13fe914d542d..1a0a7b2c429ab9792eccc21893594820b96682dd 100644 --- a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_view.xml +++ b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_view.xml @@ -97,6 +97,7 @@ <string>my_quality_reference</string> <string>my_drawing_reference</string> <string>my_apparel_fabric_template_title</string> + <string>my_quantity_unit_list</string> <string>my_resource</string> <string>my_visual_pattern</string> <string>my_trade_description</string> diff --git a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_view/my_quantity_unit_list.xml b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_view/my_quantity_unit_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..2f2e39d0988081d8eaccb7ffad65c31989299ba2 --- /dev/null +++ b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_view/my_quantity_unit_list.xml @@ -0,0 +1,95 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_quantity_unit_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>extra_context</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>extra_context</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>extra_context</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_quantity_unit_list</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Resource_viewFieldLibrary</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_apparel/bt/revision b/bt5/erp5_apparel/bt/revision index d7765fe47e06ccb3e29a916d2f5ede6d3ac0c533..2fb681e3f93b6b7e6441bd64271813a1ec293b5b 100644 --- a/bt5/erp5_apparel/bt/revision +++ b/bt5/erp5_apparel/bt/revision @@ -1 +1 @@ -70 \ No newline at end of file +71 \ No newline at end of file diff --git a/bt5/erp5_apparel/bt/template_action_path_list b/bt5/erp5_apparel/bt/template_action_path_list index 981f8cdf7d374637b4a47d5b1df10a404ef0ff03..c32177eeae631a92e47ab39007fb68c3f6031dcc 100644 --- a/bt5/erp5_apparel/bt/template_action_path_list +++ b/bt5/erp5_apparel/bt/template_action_path_list @@ -85,6 +85,7 @@ Apparel Fabric | purchase_price_view Apparel Fabric | sale_price_view Apparel Fabric | view Apparel Fabric | view_composition +Apparel Fabric | view_measure Apparel Measurement Module | csv_export Apparel Measurement Module | csv_import Apparel Measurement Module | list_ui diff --git a/bt5/erp5_apparel/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_apparel/bt/template_portal_type_allowed_content_type_list index 6d7cfc9a3d461a9fc8632a905e4540f4913ed022..e486c99d2f6e957288780411f339a89f8b12b9fa 100644 --- a/bt5/erp5_apparel/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_apparel/bt/template_portal_type_allowed_content_type_list @@ -19,6 +19,7 @@ Apparel Fabric Item | Apparel Fabric Item Apparel Fabric Module | Apparel Fabric Apparel Fabric | Apparel Fabric Colour Variation Apparel Fabric | Mapped Value +Apparel Fabric | Measure Apparel Fabric | Purchase Supply Line Apparel Fabric | Sale Supply Line Apparel Fabric | Supply Line