Browse Source

publish muk_web_theme - 13.0

13.0
MuK IT GmbH 4 years ago
parent
commit
3ff02ae457
  1. 2
      muk_web_theme/__manifest__.py
  2. 4
      muk_web_theme/models/res_config_settings.py
  3. 44
      muk_web_theme/views/res_config_settings_view.xml

2
muk_web_theme/__manifest__.py

@ -22,7 +22,7 @@
{ {
"name": "MuK Backend Theme", "name": "MuK Backend Theme",
"summary": "Odoo Community Backend Theme", "summary": "Odoo Community Backend Theme",
"version": "13.0.1.0.1",
"version": "13.0.1.0.2",
"category": "Themes/Backend", "category": "Themes/Backend",
"license": "LGPL-3", "license": "LGPL-3",
"author": "MuK IT", "author": "MuK IT",

4
muk_web_theme/models/res_config_settings.py

@ -53,6 +53,10 @@ class ResConfigSettings(models.TransientModel):
string="Theme Mobile", string="Theme Mobile",
help="Allow Odoo to be used as a PWA app.") help="Allow Odoo to be used as a PWA app.")
theme_favicon = fields.Binary(
related="company_id.favicon",
readonly=False)
theme_background_image = fields.Binary( theme_background_image = fields.Binary(
related="company_id.background_image", related="company_id.background_image",
readonly=False) readonly=False)

44
muk_web_theme/views/res_config_settings_view.xml

@ -55,20 +55,14 @@
<div class="o_setting_left_pane"> <div class="o_setting_left_pane">
</div> </div>
<div class="o_setting_right_pane"> <div class="o_setting_right_pane">
<span class="o_form_label">Theme Colors</span>
<span class="o_form_label">Favicon</span>
<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"/>
<div class="text-muted"> <div class="text-muted">
Set the main theme colors
Set the favicon for the system
</div> </div>
<div class="content-group"> <div class="content-group">
<div class="mt16 row"> <div class="mt16 row">
<label for="theme_color_brand" string="Brand" class="col-3 o_light_label"/>
<field name="theme_color_brand" widget="color" class="oe_inline"/>
<div class="w-100"></div>
<label for="theme_color_primary" string="Primary" class="col-3 o_light_label"/>
<field name="theme_color_primary" widget="color" class="oe_inline"/>
<div class="w-100"></div>
<label for="theme_color_required" string="Required" class="col-3 o_light_label"/>
<field name="theme_color_required" widget="color" class="oe_inline"/>
<field name="theme_favicon_backend" widget="image" class="ml-4 oe_avatar" required="1"/>
</div> </div>
</div> </div>
</div> </div>
@ -77,14 +71,20 @@
<div class="o_setting_left_pane"> <div class="o_setting_left_pane">
</div> </div>
<div class="o_setting_right_pane"> <div class="o_setting_right_pane">
<span class="o_form_label">Background Image</span>
<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"/>
<span class="o_form_label">Theme Colors</span>
<div class="text-muted"> <div class="text-muted">
Set the background image for the apps menu
Set the main theme colors
</div> </div>
<div class="content-group"> <div class="content-group">
<div class="mt16 row"> <div class="mt16 row">
<field name="theme_background_image" widget="image" class="ml-4" required="1"/>
<label for="theme_color_brand" string="Brand" class="col-3 o_light_label"/>
<field name="theme_color_brand" widget="color" class="oe_inline"/>
<div class="w-100"></div>
<label for="theme_color_primary" string="Primary" class="col-3 o_light_label"/>
<field name="theme_color_primary" widget="color" class="oe_inline"/>
<div class="w-100"></div>
<label for="theme_color_required" string="Required" class="col-3 o_light_label"/>
<field name="theme_color_required" widget="color" class="oe_inline"/>
</div> </div>
</div> </div>
</div> </div>
@ -114,6 +114,22 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
</div>
<div class="o_setting_right_pane">
<span class="o_form_label">Background Image</span>
<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"/>
<div class="text-muted">
Set the background image for the apps menu
</div>
<div class="content-group">
<div class="mt16 row">
<field name="theme_background_image" widget="image" class="ml-4" required="1"/>
</div>
</div>
</div>
</div>
</div> </div>
<h2 id="web_theme_extension_title">Backend Theme Extensions</h2> <h2 id="web_theme_extension_title">Backend Theme Extensions</h2>
<div class="row mt16 o_settings_container" name="web_theme_extension"> <div class="row mt16 o_settings_container" name="web_theme_extension">

Loading…
Cancel
Save