mirror of https://github.com/OCA/web.git
Merge pull request #294 from aaltinisik/add-web_hideleftmenu
[ADD] Add web_hideleftmenu modulepull/296/head
commit
3d4a4cd012
|
@ -0,0 +1,65 @@
|
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
|
||||
===============================
|
||||
Hide left Menu in Web interface
|
||||
===============================
|
||||
|
||||
This module adds a menu item after logout link to hide or show left menu.
|
||||
It is useful on small screens or tree views with many columns.
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
To use this module, you need to:
|
||||
|
||||
* Click on new menu item "Hide/Show Menu"on dropdown menu after logout menu item.
|
||||
|
||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||
:alt: Try me on Runbot
|
||||
:target: https://runbot.odoo-community.org/runbot/repo/github-com-oca-web-162
|
||||
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues
|
||||
<https://github.com/OCA/web/issues>`_. In case of trouble, please
|
||||
check there if your issue has already been reported. If you spotted it first,
|
||||
help us smashing it by providing a detailed and welcomed `feedback
|
||||
<https://github.com/OCA/
|
||||
web/issues/new?body=module:%20
|
||||
web_hideleftmenu%0Aversion:%20
|
||||
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Credits
|
||||
=======
|
||||
Original module by Vauxoo, Migrated to V8.0 by Ahmet Altinisik
|
||||
|
||||
Images
|
||||
------
|
||||
.. image:: web_hideleftmenu/static/description/1.png
|
||||
|
||||
.. image:: web_hideleftmenu/static/description/2.png
|
||||
|
||||
Contributors
|
||||
------------
|
||||
* Nhomar Hernández <nhomar@vauxoo.com>
|
||||
* Ahmet Altinisik <aaltinisik@altinkaya.com.tr>
|
||||
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
To contribute to this module, please visit https://odoo-community.org.
|
|
@ -0,0 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# © Vauxoo <nhomar@vauxoo.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
@ -0,0 +1,24 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# © Vauxoo <nhomar@vauxoo.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
"name": "Web Hide Left Menu",
|
||||
"summary": "Hide Left Menu in Web Interface",
|
||||
"version": "8.0.1.0.0",
|
||||
"category": "Hidden",
|
||||
"website": "https://odoo-community.org/",
|
||||
"author": "Vauxoo, Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
"application": False,
|
||||
"installable": True,
|
||||
"depends": [
|
||||
"web",
|
||||
],
|
||||
"data": [
|
||||
"web_hideleftmenu_js.xml",
|
||||
],
|
||||
"qweb": [
|
||||
"static/src/xml/lib.xml",
|
||||
],
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
|
@ -0,0 +1,6 @@
|
|||
.oe_hidemenu {
|
||||
background-size: auto;
|
||||
}
|
||||
|
||||
.oe_letters {
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
openerp.web_hideleftmenu = function (instance) {
|
||||
instance.web.WebClient.include({
|
||||
events: {
|
||||
'click .oe_hidemenu': 'hideleftmenu',
|
||||
},
|
||||
hideleftmenu: function(ev) {
|
||||
this.$(".oe_leftbar").toggle("slow");
|
||||
},
|
||||
});
|
||||
};
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<template>
|
||||
|
||||
<t t-extend="UserMenu">
|
||||
<t t-name="web_hideleftmenu.hidemenu" t-jquery="ul.dropdown-menu li:last" t-operation="after">
|
||||
<li class="oe_hidemenu">
|
||||
<a href="#">Hide/Show Menu</a>
|
||||
</li>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<template id="hideleft_assets_backend" name="web_hideleftmenu assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<link rel="stylesheet" href="/web_hideleftmenu/static/src/css/lib.css"/>
|
||||
<script type="text/javascript" src="/web_hideleftmenu/static/src/js/lib.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
</openerp>
|
Loading…
Reference in New Issue