You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
8.8 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2017 MuK IT GmbH
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <odoo>
  16. <record id="res_config_settings_view_form" model="ir.ui.view">
  17. <field name="name">res.config.settings.view.form</field>
  18. <field name="model">res.config.settings</field>
  19. <field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
  20. <field name="arch" type="xml">
  21. <div id="business_documents" position="after">
  22. <h2 id="web_theme_title">Backend Theme</h2>
  23. <div class="row mt16 o_settings_container" name="web_theme">
  24. <div class="col-12 col-lg-6 o_setting_box">
  25. <div class="o_setting_left_pane">
  26. </div>
  27. <div class="o_setting_right_pane">
  28. <span class="o_form_label">Default Preferences</span>
  29. <div class="text-muted">
  30. Set the default theme preferences
  31. </div>
  32. <div class="content-group">
  33. <div class="mt16 row">
  34. <label for="theme_default_sidebar_preference" string="Sidebar" class="col-3 o_light_label"/>
  35. <field name="theme_default_sidebar_preference" class="col-5"/>
  36. <div class="w-100"></div>
  37. <label for="theme_default_chatter_preference" string="Chatter" class="col-3 o_light_label"/>
  38. <field name="theme_default_chatter_preference" class="col-5"/>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="col-12 col-lg-6 o_setting_box">
  44. <div class="o_setting_left_pane">
  45. </div>
  46. <div class="o_setting_right_pane">
  47. <span class="o_form_label">Theme Colors</span>
  48. <div class="text-muted">
  49. Set the main theme colors
  50. </div>
  51. <div class="content-group">
  52. <div class="mt16 row">
  53. <label for="theme_color_brand" string="Brand" class="col-3 o_light_label"/>
  54. <field name="theme_color_brand" widget="color" class="oe_inline"/>
  55. <div class="w-100"></div>
  56. <label for="theme_color_primary" string="Primary" class="col-3 o_light_label"/>
  57. <field name="theme_color_primary" widget="color" class="oe_inline"/>
  58. <div class="w-100"></div>
  59. <label for="theme_color_required" string="Required" class="col-3 o_light_label"/>
  60. <field name="theme_color_required" widget="color" class="oe_inline"/>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="col-12 col-lg-6 o_setting_box">
  66. <div class="o_setting_left_pane">
  67. </div>
  68. <div class="o_setting_right_pane">
  69. <span class="o_form_label">Background Image</span>
  70. <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
  71. <div class="text-muted">
  72. Set the background image for the apps menu
  73. </div>
  74. <div class="content-group">
  75. <div class="mt16 row">
  76. <field name="theme_background_image" widget="image" class="ml-4" required="1"/>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="col-12 col-lg-6 o_setting_box">
  82. <div class="o_setting_left_pane">
  83. </div>
  84. <div class="o_setting_right_pane">
  85. <span class="o_form_label">Menu Colors</span>
  86. <div class="text-muted">
  87. Set the main menu colors
  88. </div>
  89. <div class="content-group">
  90. <div class="mt16 row">
  91. <label for="theme_color_appbar_color" string="Menu Color" class="col-3 o_light_label"/>
  92. <field name="theme_color_appbar_color" widget="color" class="oe_inline"/>
  93. <div class="w-100"></div>
  94. <label for="theme_color_appbar_background" string="Background" class="col-3 o_light_label"/>
  95. <field name="theme_color_appbar_background" widget="color" class="oe_inline"/>
  96. <div class="w-100"></div>
  97. <label for="theme_color_menu" string="Apps Color" class="col-3 o_light_label"/>
  98. <field name="theme_color_menu" widget="color" class="oe_inline"/>
  99. <div class="w-100"></div>
  100. <label for="theme_background_blend_mode" string="Apps Blend" class="col-3 o_light_label"/>
  101. <field name="theme_background_blend_mode" class="col-5"/>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <h2 id="web_theme_extension_title">Backend Theme Extensions</h2>
  108. <div class="row mt16 o_settings_container" name="web_theme_extension">
  109. <div class="col-12 col-lg-6 o_setting_box">
  110. <div class="o_setting_left_pane">
  111. <field name="module_muk_web_theme_mail"/>
  112. </div>
  113. <div class="o_setting_right_pane">
  114. <label for="module_muk_web_theme_mail"/>
  115. <div class="text-muted">
  116. Optimizes the mail chatter for the theme
  117. </div>
  118. </div>
  119. </div>
  120. <div class="col-12 col-lg-6 o_setting_box">
  121. <div class="o_setting_left_pane">
  122. <field name="module_muk_web_theme_branding"/>
  123. </div>
  124. <div class="o_setting_right_pane">
  125. <label for="module_muk_web_theme_branding"/>
  126. <div class="text-muted">
  127. Customize the theme according to your needs
  128. </div>
  129. </div>
  130. </div>
  131. <div class="col-12 col-lg-6 o_setting_box">
  132. <div class="o_setting_left_pane">
  133. <field name="module_muk_web_theme_website"/>
  134. </div>
  135. <div class="o_setting_right_pane">
  136. <label for="module_muk_web_theme_website"/>
  137. <div class="text-muted">
  138. Add theme styled website navigation
  139. </div>
  140. </div>
  141. </div>
  142. <div class="col-12 col-lg-6 o_setting_box">
  143. <div class="o_setting_left_pane">
  144. <field name="module_muk_web_theme_mobile"/>
  145. </div>
  146. <div class="o_setting_right_pane">
  147. <label for="module_muk_web_theme_mobile"/>
  148. <div class="text-muted">
  149. Allow Odoo to be used as a PWA app
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </field>
  156. </record>
  157. </odoo>