diff --git a/web_hideleftmenu/__init__.py b/web_hideleftmenu/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/web_hideleftmenu/__openerp__.py b/web_hideleftmenu/__openerp__.py new file mode 100644 index 00000000..c0767d5a --- /dev/null +++ b/web_hideleftmenu/__openerp__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). 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 . +# +############################################################################## + +{ + '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, +} diff --git a/web_hideleftmenu/static/description/icon.png b/web_hideleftmenu/static/description/icon.png new file mode 100644 index 00000000..8c5a5f33 Binary files /dev/null and b/web_hideleftmenu/static/description/icon.png differ diff --git a/web_hideleftmenu/static/src/css/lib.css b/web_hideleftmenu/static/src/css/lib.css new file mode 100644 index 00000000..252cece2 --- /dev/null +++ b/web_hideleftmenu/static/src/css/lib.css @@ -0,0 +1,6 @@ +.oe_hidemenu { + background-size: auto; +} + +.oe_letters { +} diff --git a/web_hideleftmenu/static/src/js/lib.js b/web_hideleftmenu/static/src/js/lib.js new file mode 100644 index 00000000..04af2503 --- /dev/null +++ b/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"); + }, + }); +}; diff --git a/web_hideleftmenu/static/src/xml/lib.xml b/web_hideleftmenu/static/src/xml/lib.xml new file mode 100644 index 00000000..4240a0b5 --- /dev/null +++ b/web_hideleftmenu/static/src/xml/lib.xml @@ -0,0 +1,9 @@ + +