website_config_view.xml 6.9 KB

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