Browse Source

module web_hideleftmenu added

pull/294/head
Ahmet Altinisik 9 years ago
parent
commit
8e4e23e0f6
  1. 0
      web_hideleftmenu/__init__.py
  2. 52
      web_hideleftmenu/__openerp__.py
  3. BIN
      web_hideleftmenu/static/description/icon.png
  4. 6
      web_hideleftmenu/static/src/css/lib.css
  5. 10
      web_hideleftmenu/static/src/js/lib.js
  6. 9
      web_hideleftmenu/static/src/xml/lib.xml

0
web_hideleftmenu/__init__.py

52
web_hideleftmenu/__openerp__.py

@ -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,
}

BIN
web_hideleftmenu/static/description/icon.png

After

Width: 56  |  Height: 56  |  Size: 3.8 KiB

6
web_hideleftmenu/static/src/css/lib.css

@ -0,0 +1,6 @@
.oe_hidemenu {
background-size: auto;
}
.oe_letters {
}

10
web_hideleftmenu/static/src/js/lib.js

@ -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");
},
});
};

9
web_hideleftmenu/static/src/xml/lib.xml

@ -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…
Cancel
Save