website_config_view.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Website Config Settings for Multiple Image -->
  5. <record id="view_website_config_settings_effects_inherit" model="ir.ui.view">
  6. <field name="name">Website settings</field>
  7. <field name="model">website.config.settings</field>
  8. <field name="inherit_id" ref="website.view_website_config_settings"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="/form/div/group[@string='Language']" position="after">
  11. <group name="biztech_product_sorting" string="Product Sort">
  12. <field name="enable_sort_by"/>
  13. </group>
  14. <group string="Multiple Product Image">
  15. <field name="no_extra_options"/>
  16. <field name="thumbnail_panel_position"
  17. attrs="{'invisible': [('no_extra_options', '=', False)]}"/>
  18. <field name="interval_play"
  19. attrs="{'invisible': [('no_extra_options', '=', False)]}"/>
  20. <field name="enable_disable_text"
  21. attrs="{'invisible': [('no_extra_options', '=', False)]}"/>
  22. <field name="color_opt_thumbnail"
  23. attrs="{'invisible': [('no_extra_options', '=', False)]}"/>
  24. <field name="change_thumbnail_size"/>
  25. <field name="thumb_height"
  26. attrs="{'invisible': [('change_thumbnail_size', '=', False)]}"/>
  27. <field name="thumb_width"
  28. attrs="{'invisible': [('change_thumbnail_size', '=', False)]}"/>
  29. </group>
  30. <group string="Product per grid">
  31. <field name="product_display_grid"/>
  32. </group>
  33. </xpath>
  34. </field>
  35. </record>
  36. <!-- Website Menu List view -->
  37. <record id="website.menu_tree" model="ir.ui.view">
  38. <field name="name">website.menu.tree</field>
  39. <field name="model">website.menu</field>
  40. <field name="field_parent">child_id</field>
  41. <field name="arch" type="xml">
  42. <tree string="Website menu">
  43. <field name="sequence" widget="handle"/>
  44. <field name="website_id" options="{'no_create': True}"/>
  45. <field name="name"/>
  46. <field name="is_megamenu"/>
  47. <field name="url"/>
  48. <field name="new_window"/>
  49. <field name="parent_id"/>
  50. </tree>
  51. </field>
  52. </record>
  53. <!-- Website Menu Form view -->
  54. <record id="view_website_menu_inherit" model="ir.ui.view">
  55. <field name="name">Website Menu Form View Inherited</field>
  56. <field name="model">website.menu</field>
  57. <field name="field_parent">child_id</field>
  58. <field name="arch" type="xml">
  59. <form string="Website menu">
  60. <sheet>
  61. <group>
  62. <field name="website_id" options="{'no_create': True}"/>
  63. <field name="name"/>
  64. <field name="url"/>
  65. <field name="new_window"/>
  66. <field name="parent_id" domain="[('is_megamenu', '=', False)]"/>
  67. </group>
  68. <group attrs="{'invisible': [('parent_id', '=', False)]}">
  69. <field name="is_megamenu"/>
  70. </group>
  71. <group attrs="{'invisible': ['|', ('is_megamenu', '=', False), ('parent_id', '=', False)]}">
  72. <field name="megamenu_type"/>
  73. <field name="megamenu_bg"/>
  74. <field name="megamenu_bg_img_color"
  75. widget="radio"
  76. attrs="{'invisible': [('megamenu_bg', '=', False)]}"/>
  77. <field name="megamenu_bg_image"
  78. widget="image"
  79. height='64px'
  80. attrs="{'invisible': ['|', ('megamenu_bg', '=', False), ('megamenu_bg_img_color', '=', 'bg_color')],
  81. 'required': [('megamenu_bg', '!=', False), ('megamenu_bg_img_color', '=', 'bg_img')]}"/>
  82. <field name="megamenu_bg_color"
  83. placeholder="#ccc"
  84. attrs="{'invisible': ['|', ('megamenu_bg', '=', False), ('megamenu_bg_img_color', '=', 'bg_img')],
  85. 'required': [('megamenu_bg', '!=', False), ('megamenu_bg_img_color', '=', 'bg_color')]}"/>
  86. <field name="category_slider"/>
  87. <field name="carousel_header_name"
  88. attrs="{'invisible': [('category_slider', '=', False)]}"/>
  89. <field name="category_slider_position"
  90. attrs="{'invisible': [('category_slider', '=', False)]}"/>
  91. <field name="menu_icon"/>
  92. <field name="menu_icon_image" widget="image"
  93. height='64px'
  94. attrs="{'invisible': [('menu_icon', '=', False)],
  95. 'required': [('menu_icon', '=', True)]}"/>
  96. <field name="customize_menu_colors"/>
  97. <field name="main_category_color"
  98. attrs="{'invisible': [('customize_menu_colors', '=', False)],
  99. 'required': [('customize_menu_colors', '=', True)]}"/>
  100. <field name="sub_category_color"
  101. attrs="{'invisible': [('customize_menu_colors', '=', False)],
  102. 'required': [('customize_menu_colors', '=', True)]}"/>
  103. <field name="display_menu_footer"/>
  104. <field name="menu_footer"
  105. attrs="{'invisible': [('display_menu_footer', '=', False)],
  106. 'required': [('display_menu_footer', '=', True)]}"/>
  107. </group>
  108. </sheet>
  109. </form>
  110. </field>
  111. </record>
  112. <!-- Website Menu Action -->
  113. <record id="website.action_website_menu" model="ir.actions.act_window">
  114. <field name="name">Website Menu</field>
  115. <field name="res_model">website.menu</field>
  116. <field name="view_mode">list,form</field>
  117. <field name="context">{'search_default_my_websites':1}</field>
  118. </record>
  119. </data>
  120. </openerp>