forked from Techsystech/web
module web_hideleftmenu added
parent
fc6a5ece31
commit
8e4e23e0f6
|
@ -0,0 +1,52 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
|
||||
# Financed and Planified by Vauxoo
|
||||
# developed by: nhomar@vauxoo.com
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
'name': "Web Hide Left Menu",
|
||||
'author': "Vauxoo",
|
||||
'category': "Hidden",
|
||||
'description': """
|
||||
Hide Left menu:
|
||||
===============
|
||||
|
||||
This module just add a button un User Menu to hide the left menu specially useful
|
||||
when you are analysing a bunch of data.
|
||||
|
||||
Original module by Vauxoo, Migrated to V8.0 by Ahmet Altinisik
|
||||
|
||||
""",
|
||||
'version': "8.0",
|
||||
'depends': ['web'],
|
||||
'js': [
|
||||
'static/src/js/lib.js',
|
||||
],
|
||||
'css': [
|
||||
'static/src/css/lib.css',
|
||||
],
|
||||
'qweb': [
|
||||
'static/src/xml/lib.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
'web_preload': False,
|
||||
}
|
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,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<template>
|
||||
<t t-jquery="ul.dropdown-menu li:last" t-operation="after">
|
||||
<li class="oe_hidemenu">
|
||||
<a href="#">Hide/Show Menu</a>
|
||||
</li>
|
||||
</t>
|
||||
|
||||
</template>
|
Loading…
Reference in New Issue