website_config_view.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- Website Config Settings -->
  4. <record id="view_website_config_settings_effects_inherit" model="ir.ui.view">
  5. <field name="name">website settings</field>
  6. <field name="model">res.config.settings</field>
  7. <field name="inherit_id" ref="website.res_config_settings_view_form"/>
  8. <field name="arch" type="xml">
  9. <div id="webmaster_settings" position="after">
  10. <h2>Website Product Pager Settings</h2>
  11. <div class="row mt16 o_settings_container">
  12. <div class="col-xs-12 col-md-12 o_setting_box">
  13. <div class="o_setting_left_pane">
  14. <field name="enable_first_last_pager"/>
  15. </div>
  16. <div class="o_setting_right_pane">
  17. <label for="enable_first_last_pager"/>
  18. </div>
  19. </div>
  20. </div>
  21. <h2>Product per grid</h2>
  22. <div class="row mt16 o_settings_container">
  23. <div class="col-xs-12 col-md-12 o_setting_box">
  24. <div class="o_setting_right_pane">
  25. <label for="product_display_grid"/>
  26. <div class="mt8">
  27. <field name="product_display_grid" widget="radio" options="{'horizontal': true}"/>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <h2>Multiple Product Image</h2>
  33. <div class="row mt16 o_settings_container">
  34. <div class="col-xs-12 col-md-12 o_setting_box">
  35. <div class="o_setting_left_pane">
  36. <field name="no_extra_options"/>
  37. </div>
  38. <div class="o_setting_right_pane">
  39. <label for="no_extra_options"/>
  40. </div>
  41. </div>
  42. <div class="col-xs-12 col-md-12 o_setting_box" attrs="{'invisible': [('no_extra_options', '=', False)]}">
  43. <div class="o_setting_left_pane">
  44. <field name="enable_disable_text"/>
  45. </div>
  46. <div class="o_setting_right_pane">
  47. <label for="enable_disable_text"/>
  48. </div>
  49. </div>
  50. <div class="col-xs-12 col-md-12 o_setting_box" attrs="{'invisible': [('no_extra_options', '=', False)]}">
  51. <div class="o_setting_right_pane">
  52. <label for="thumbnail_panel_position"/>
  53. <div class="text-muted">
  54. <field name="thumbnail_panel_position"/>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="col-xs-12 col-md-12 o_setting_box" attrs="{'invisible': [('no_extra_options', '=', False)]}">
  59. <div class="o_setting_right_pane">
  60. <label for="interval_play"/>
  61. <div class="text-muted">
  62. <field name="interval_play"/>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="col-xs-12 col-md-12 o_setting_box" attrs="{'invisible': [('no_extra_options', '=', False)]}">
  67. <div class="o_setting_right_pane">
  68. <label for="color_opt_thumbnail"/>
  69. <div class="text-muted">
  70. <field name="color_opt_thumbnail"/>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="col-xs-12 col-md-12 o_setting_box">
  75. <div class="o_setting_left_pane">
  76. <field name="change_thumbnail_size"/>
  77. </div>
  78. <div class="o_setting_right_pane">
  79. <label for="change_thumbnail_size"/>
  80. </div>
  81. </div>
  82. <div class="col-xs-12 col-md-12 o_setting_box" attrs="{'invisible': [('change_thumbnail_size', '=', False)]}">
  83. <div class="o_setting_right_pane">
  84. <label for="thumb_height"/>
  85. <div class="text-muted">
  86. <field name="thumb_height"/>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="col-xs-12 col-md-12 o_setting_box" attrs="{'invisible': [('change_thumbnail_size', '=', False)]}">
  91. <div class="o_setting_right_pane">
  92. <label for="thumb_width"/>
  93. <div class="text-muted">
  94. <field name="thumb_width"/>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </field>
  101. </record>
  102. <!-- Website Menu List view -->
  103. <record id="website.menu_tree" model="ir.ui.view">
  104. <field name="name">website.menu.tree</field>
  105. <field name="model">website.menu</field>
  106. <field name="field_parent">child_id</field>
  107. <field name="arch" type="xml">
  108. <tree string="Website menu">
  109. <field name="sequence" widget="handle"/>
  110. <field name="website_id" options="{'no_create': True}"/>
  111. <field name="name"/>
  112. <field name="is_megamenu"/>
  113. <field name="url"/>
  114. <field name="new_window"/>
  115. <field name="parent_id"/>
  116. </tree>
  117. </field>
  118. </record>
  119. <!-- Website Menu Form view -->
  120. <record id="website.website_menus_form_view" model="ir.ui.view">
  121. <field name="name">Website Menu Form View Inherited</field>
  122. <field name="model">website.menu</field>
  123. <field name="field_parent">child_id</field>
  124. <field name="arch" type="xml">
  125. <form string="Website menu">
  126. <sheet>
  127. <group>
  128. <field name="website_id" options="{'no_create': True}"/>
  129. <field name="name"/>
  130. <field name="url"/>
  131. <field name="new_window"/>
  132. <field name="parent_id" domain="[('is_megamenu', '=', False)]"/>
  133. </group>
  134. <group attrs="{'invisible': [('parent_id', '=', False)]}">
  135. <field name="is_megamenu"/>
  136. </group>
  137. <group attrs="{'invisible': ['|', ('is_megamenu', '=', False), ('parent_id', '=', False)]}">
  138. <field name="megamenu_type"/>
  139. <field name="megamenu_bg"/>
  140. <field name="megamenu_bg_img_color"
  141. widget="radio"
  142. attrs="{'invisible': [('megamenu_bg', '=', False)]}"/>
  143. <field name="megamenu_bg_image"
  144. widget="image"
  145. height='64px'
  146. attrs="{'invisible': ['|', ('megamenu_bg', '=', False), ('megamenu_bg_img_color', '=', 'bg_color')],
  147. 'required': [('megamenu_bg', '!=', False), ('megamenu_bg_img_color', '=', 'bg_img')]}"/>
  148. <field name="megamenu_bg_color"
  149. placeholder="#ccc"
  150. attrs="{'invisible': ['|', ('megamenu_bg', '=', False), ('megamenu_bg_img_color', '=', 'bg_img')],
  151. 'required': [('megamenu_bg', '!=', False), ('megamenu_bg_img_color', '=', 'bg_color')]}"/>
  152. <field name="category_slider"/>
  153. <field name="carousel_header_name"
  154. attrs="{'invisible': [('category_slider', '=', False)]}"/>
  155. <field name="category_slider_position"
  156. attrs="{'invisible': [('category_slider', '=', False)]}"/>
  157. <field name="menu_icon"/>
  158. <field name="menu_icon_image" widget="image"
  159. height='64px'
  160. attrs="{'invisible': [('menu_icon', '=', False)],
  161. 'required': [('menu_icon', '=', True)]}"/>
  162. <field name="customize_menu_colors"/>
  163. <field name="main_category_color"
  164. attrs="{'invisible': [('customize_menu_colors', '=', False)],
  165. 'required': [('customize_menu_colors', '=', True)]}"/>
  166. <field name="sub_category_color"
  167. attrs="{'invisible': [('customize_menu_colors', '=', False)],
  168. 'required': [('customize_menu_colors', '=', True)]}"/>
  169. <field name="display_menu_footer"/>
  170. <field name="menu_footer"
  171. widget="html"
  172. attrs="{'invisible': [('display_menu_footer', '=', False)],
  173. 'required': [('display_menu_footer', '=', True)]}"/>
  174. </group>
  175. </sheet>
  176. </form>
  177. </field>
  178. </record>
  179. <!-- Website Menu Action -->
  180. <record id="website.action_website_menu" model="ir.actions.act_window">
  181. <field name="name">Website Menu</field>
  182. <field name="res_model">website.menu</field>
  183. <field name="view_mode">list,form</field>
  184. <field name="context">{'search_default_my_websites':1}</field>
  185. </record>
  186. </odoo>