Browse Source

publish muk_web_theme - 12.0

pull/115/head
MuK IT GmbH 5 years ago
parent
commit
641789f057
  1. 2
      muk_web_theme/__manifest__.py
  2. 11
      muk_web_theme/models/res_config_settings.py
  3. 22
      muk_web_theme/views/res_config_settings_view.xml

2
muk_web_theme/__manifest__.py

@ -19,7 +19,7 @@
{
"name": "MuK Backend Theme",
"summary": "Odoo Community Backend Theme",
"version": "12.0.1.6.5",
"version": "12.0.1.6.6",
"category": "Themes/Backend",
"license": "AGPL-3",
"author": "MuK IT",

11
muk_web_theme/models/res_config_settings.py

@ -34,6 +34,10 @@ class ResConfigSettings(models.TransientModel):
# Database
#----------------------------------------------------------
module_muk_web_theme_mail = fields.Boolean(
string="Theme Mail",
help="Optimizes the mail chatter for the theme.")
module_muk_web_theme_branding = fields.Boolean(
string="Theme Branding",
help="Customize the theme according to your needs.")
@ -42,10 +46,13 @@ class ResConfigSettings(models.TransientModel):
string="Theme Website",
help="Add theme styled website navigation.")
module_muk_web_theme_mobile = fields.Boolean(
string="Theme Mobile",
help="Allow Odoo to be used as a PWA app.")
theme_background_image = fields.Binary(
related="company_id.background_image",
readonly=False,
required=True)
readonly=False)
theme_background_blend_mode = fields.Selection(
related="company_id.background_blend_mode",

22
muk_web_theme/views/res_config_settings_view.xml

@ -112,6 +112,17 @@
</div>
<h2 id="web_theme_extension_title">Backend Theme Extensions</h2>
<div class="row mt16 o_settings_container" name="web_theme_extension">
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_muk_web_theme_mail"/>
</div>
<div class="o_setting_right_pane">
<label for="module_muk_web_theme_mail"/>
<div class="text-muted">
Optimizes the mail chatter for the theme
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_muk_web_theme_branding"/>
@ -134,6 +145,17 @@
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_muk_web_theme_mobile"/>
</div>
<div class="o_setting_right_pane">
<label for="module_muk_web_theme_mobile"/>
<div class="text-muted">
Allow Odoo to be used as a PWA app
</div>
</div>
</div>
</div>
</div>
</field>

Loading…
Cancel
Save