Browse Source

publish muk_web_theme - 12.0

pull/115/head
MuK IT GmbH 6 years ago
parent
commit
4dfc23a853
  1. 2
      muk_web_theme/__manifest__.py
  2. 2
      muk_web_theme/static/src/js/views/form_renderer.js
  3. 35
      muk_web_theme/static/src/scss/settings.scss
  4. 1
      muk_web_theme/template/assets.xml

2
muk_web_theme/__manifest__.py

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

2
muk_web_theme/static/src/js/views/form_renderer.js

@ -32,7 +32,7 @@ var QWeb = core.qweb;
FormRenderer.include({ FormRenderer.include({
_renderHeaderButtons: function () { _renderHeaderButtons: function () {
var $buttons = this._super.apply(this, arguments); var $buttons = this._super.apply(this, arguments);
if (config.device.isMobile) {
if (config.device.isMobile && this.state.model !== "res.config.settings") {
var $dropdown = $(QWeb.render('muk_web_theme.MenuStatusbarButtons')); var $dropdown = $(QWeb.render('muk_web_theme.MenuStatusbarButtons'));
$buttons.addClass("dropdown-menu").appendTo($dropdown); $buttons.addClass("dropdown-menu").appendTo($dropdown);
$buttons.children().addClass("dropdown-item"); $buttons.children().addClass("dropdown-item");

35
muk_web_theme/static/src/scss/settings.scss

@ -0,0 +1,35 @@
/**********************************************************************************
*
* Copyright (C) 2017 MuK IT GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
**********************************************************************************/
@include media-breakpoint-down(sm) {
.o_base_settings .o_statusbar_buttons {
.btn {
width: auto !important;
border: solid 1px transparent;
margin: 4px 3px 4px 0 !important;
padding: $btn-padding-y-sm $btn-padding-x-sm !important;
}
.btn-primary {
border-color: $o-brand-primary;
}
.btn-secondary {
border-color: $border-color;
}
}
}

1
muk_web_theme/template/assets.xml

@ -54,6 +54,7 @@
<link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/form_view.scss"/> <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/form_view.scss"/>
<link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/fields.scss"/> <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/fields.scss"/>
<link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/notification.scss"/> <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/notification.scss"/>
<link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/settings.scss"/>
</xpath> </xpath>
<xpath expr="//script[last()]" position="after"> <xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/muk_web_theme/static/src/js/chrome/menu.js" /> <script type="text/javascript" src="/muk_web_theme/static/src/js/chrome/menu.js" />

Loading…
Cancel
Save