Browse Source

publish muk_web_theme - 12.0

pull/68/head
MuK IT GmbH 5 years ago
parent
commit
e35aaa8c6b
  1. 123
      muk_web_theme/README.rst
  2. 2
      muk_web_theme/__manifest__.py
  3. 2
      muk_web_theme/doc/index.rst
  4. 6
      muk_web_theme/static/src/js/chrome/apps.js
  5. 8
      muk_web_theme/static/src/js/chrome/menu.js
  6. 25
      muk_web_theme/static/src/scss/control_panel.scss
  7. 13
      muk_web_theme/static/src/scss/form_view.scss
  8. 5
      muk_web_theme/static/src/scss/navbar.scss
  9. 6
      muk_web_theme/static/src/xml/apps.xml

123
muk_web_theme/README.rst

@ -0,0 +1,123 @@
=============
MuK Web Theme
=============
This module offers a mobile compatible design for Odoo Community. Furthermore
it allows the user to define some design preferences. So he can choose the
size of the sidebar and the position of the chatter. In addition, the background
image of the app menu can be set for each company.
Installation
============
To install this module, you need to:
Download the module and add it to your Odoo addons folder. Afterward, log on to
your Odoo server and go to the Apps menu. Trigger the debug mode and update the
list by clicking on the "Update Apps List" link. Now install the module by
clicking on the install button.
Another way to install this module is via the package management for Python
(`PyPI <https://pypi.org/project/pip/>`_).
To install our modules using the package manager make sure
`odoo-autodiscover <https://pypi.org/project/odoo-autodiscover/>`_ is installed
correctly. Then open a console and install the module by entering the following
command:
``pip install --extra-index-url https://nexus.mukit.at/repository/odoo/simple <module>``
The module name consists of the Odoo version and the module name, where
underscores are replaced by a dash.
**Module:**
``odoo<version>-addon-<module_name>``
**Example:**
``sudo -H pip3 install --extra-index-url https://nexus.mukit.at/repository/odoo/simple odoo11-addon-muk-utils``
Once the installation has been successfully completed, the app is already in the
correct folder. Log on to your Odoo server and go to the Apps menu. Trigger the
debug mode and update the list by clicking on the "Update Apps List" link. Now
install the module by clicking on the install button.
The biggest advantage of this variant is that you can now also update the app
using the "pip" command. To do this, enter the following command in your console:
``pip install --upgrade --extra-index-url https://nexus.mukit.at/repository/odoo/simple <module>``
When the process is finished, restart your server and update the application in
Odoo. The steps are the same as for the installation only the button has changed
from "Install" to "Upgrade".
You can also view available Apps directly in our `repository <https://nexus.mukit.at/#browse/browse:odoo>`_
and find a more detailed installation guide on our `website <https://mukit.at/page/open-source>`_.
For modules licensed under OPL-1, you will receive access data when you purchase
the module. If the modules were not purchased directly from
`MuK IT <https://www.mukit.at/>`_ please contact our support (support@mukit.at)
with a confirmation of purchase to receive the corresponding access data.
Upgrade
============
To upgrade this module, you need to:
Download the module and add it to your Odoo addons folder. Restart the server
and log on to your Odoo server. Select the Apps menu and upgrade the module by
clicking on the upgrade button.
If you installed the module using the "pip" command, you can also update the
module in the same way. Just type the following command into the console:
``pip install --upgrade --extra-index-url https://nexus.mukit.at/repository/odoo/simple <module>``
When the process is finished, restart your server and update the application in
Odoo, just like you would normally.
Configuration
=============
No additional configuration is needed to use this module.
Usage
=============
After the module is installed, the design is adjusted accordingly.
Credits
=======
Contributors
------------
* Mathias Markl <mathias.markl@mukit.at>
Images
------------
Some pictures are based on or inspired by:
* `Freepik <https://www.flaticon.com/authors/freepik>`_
Projects
------------
Parts of the module are based on or inspired by:
* `Web Responsive <https://github.com/OCA/web>`_
* `Openworx Backend Theme <https://github.com/Openworx/backend_theme>`_
Author & Maintainer
-------------------
This module is maintained by the `MuK IT GmbH <https://www.mukit.at/>`_.
MuK IT is an Austrian company specialized in customizing and extending Odoo.
We develop custom solutions for your individual needs to help you focus on
your strength and expertise to grow your business.
If you want to get in touch please contact us via mail
(sale@mukit.at) or visit our website (https://mukit.at).

2
muk_web_theme/__manifest__.py

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

2
muk_web_theme/doc/index.rst

@ -5,7 +5,7 @@ MuK Web Theme
This module offers a mobile compatible design for Odoo Community. Furthermore
it allows the user to define some design preferences. So he can choose the
size of the sidebar and the position of the chatter. In addition, the background
image of the app menu can be set for each company.
image of the app menu can be set for each company.
Installation
============

6
muk_web_theme/static/src/js/chrome/apps.js

@ -139,7 +139,7 @@ AppsMenu.include({
core.bus.trigger("change_menu_section", app.menuID);
},
_onSearchResultsNavigate: function (event) {
if (this.$search_results.is(":empty")) {
if (this.$search_results.html().trim() === "") {
this._searchMenusSchedule();
return;
}
@ -162,7 +162,9 @@ AppsMenu.include({
offset++;
break;
default:
this._searchMenusSchedule();
if (key.length === 1 || key === "Backspace") {
this._searchMenusSchedule();
}
return;
}
if (offset < 0) {

8
muk_web_theme/static/src/js/chrome/menu.js

@ -62,13 +62,13 @@ Menu.include({
if ($section.hasClass('show')) {
$section.removeClass('show');
$section.find('.show').removeClass('show');
$section.find('.fa-chevron-down').show();
$section.find('.fa-chevron-right').hide();
$section.find('.fa-chevron-down:first').hide();
$section.find('.fa-chevron-right:first').show();
} else {
$section.addClass('show');
$section.find('ul:first').addClass('show');
$section.find('.fa-chevron-down:first').hide();
$section.find('.fa-chevron-right:first').show();
$section.find('.fa-chevron-down').show();
$section.find('.fa-chevron-right').hide();
}
},
});

25
muk_web_theme/static/src/scss/control_panel.scss

@ -53,14 +53,37 @@
width: auto;
flex: 1 1 auto;
}
.breadcrumb-item {
&:not(.active) {
padding-left: 0;
}
&::before {
content: none;
padding-right: 0;
}
&:nth-last-of-type(1n+3) {
display: none;
}
&:nth-last-of-type(2) {
&::before {
content: "\f053";
cursor: pointer;
color: $o-brand-primary;
font-family: FontAwesome;
}
a {
display: none;
}
}
}
.o_cp_buttons .btn.d-block:not(.d-none) {
display: inline-block !important;
}
.o_cp_switch_buttons.show {
.dropdown-menu {
align-content: center;
display: flex;
flex-direction: row;
align-content: center;
justify-content: space-around;
padding: 0;
.btn {

13
muk_web_theme/static/src/scss/form_view.scss

@ -145,6 +145,19 @@
.o_followers_title_box {
margin-left: 0;
}
.o_chatter_topbar,
.o_thread_composer {
position: sticky;
}
.o_chatter_topbar {
top: -1px;
z-index: 2;
background-color: $o-view-background-color;
}
.o_thread_composer {
top: $o-statusbar-height;
z-index: 1;
}
}
}
}

5
muk_web_theme/static/src/scss/navbar.scss

@ -49,6 +49,9 @@
@include mk-full-screen-sections();
}
}
.o_user_menu img {
margin-bottom: 3px;
}
.o_menu_brand, .o_menu_sections, .oe_topbar_name {
display: none;
}
@ -100,7 +103,7 @@
min-width: auto;
box-shadow: none;
background: none;
position: relative;
position: initial;
}
@for $index from 1 through 5 {
.o_menu_entry_lvl_#{$index} {

6
muk_web_theme/static/src/xml/apps.xml

@ -20,6 +20,9 @@
<templates id="template" xml:space="preserve">
<t t-extend="AppsMenu">
<t t-jquery=".o_app" t-operation="attributes">
<attribute name="t-attf-href">#menu_id=#{app.menuID}&amp;action_id=#{app.actionID}</attribute>
</t>
<t t-jquery=".full" t-operation="attributes">
<attribute name="accesskey">h</attribute>
</t>
@ -56,8 +59,9 @@
<t t-name="muk_web_theme.MenuSearchResults">
<t t-foreach="results" t-as="result">
<t t-set="menu" t-value="widget._menuInfo(result.original)"/>
<div t-attf-class="mk_menu_search_result dropdown-item col-12 ml-auto mr-auto #{result_first ? 'active' : ''}"
<a t-attf-class="mk_menu_search_result dropdown-item col-12 ml-auto mr-auto #{result_first ? 'active' : ''}"
t-attf-style="background-image:url('data:image/png;base64,#{menu.web_icon_data}')"
t-attf-href="#menu_id=#{menu.id}&amp;action_id=#{menu.action_id}"
t-att-data-menu-id="menu.id"
t-att-data-action-id="menu.action_id"
t-att-data-parent-id="menu.parent_id[0]"

Loading…
Cancel
Save