From 8e4e23e0f603e22d15910bef3050389ab04a7d97 Mon Sep 17 00:00:00 2001 From: Ahmet Altinisik Date: Mon, 18 Jan 2016 00:03:18 +0200 Subject: [PATCH] module web_hideleftmenu added --- web_hideleftmenu/__init__.py | 0 web_hideleftmenu/__openerp__.py | 52 +++++++++++++++++++ web_hideleftmenu/static/description/icon.png | Bin 0 -> 3869 bytes web_hideleftmenu/static/src/css/lib.css | 6 +++ web_hideleftmenu/static/src/js/lib.js | 10 ++++ web_hideleftmenu/static/src/xml/lib.xml | 9 ++++ 6 files changed, 77 insertions(+) create mode 100644 web_hideleftmenu/__init__.py create mode 100644 web_hideleftmenu/__openerp__.py create mode 100644 web_hideleftmenu/static/description/icon.png create mode 100644 web_hideleftmenu/static/src/css/lib.css create mode 100644 web_hideleftmenu/static/src/js/lib.js create mode 100644 web_hideleftmenu/static/src/xml/lib.xml 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 0000000000000000000000000000000000000000..8c5a5f3375d6717f475070797ea038ee9303ffa6 GIT binary patch literal 3869 zcmXAs2{@G7AID#DM`USiR|vf!*^+IzLKtDJjV(-O$UcpImnCi*6)uKJwkWcMWXYDK zT)JavkbTWEp$v`e%>V8AKkswi^PKaX_dLJ%{C>aB_ji)5EseQ3MK}Qf;5IcuqM=^% zcRLA#-epPJ;!wvDj5am^s{6%OpaIOy%oqtUe?L#(zQ}}TI08%@g8|?a|L?{EJjoM= zCfP$wEsWTwSvXn6)Dz^*iUEKp-xR5D>pj!=B>MK*(6H`zUh7lM;p=bzO+CkR_th0S zs$!MBnFLxI88JM{5s8z$8_y43C%YRB_1RDG3Giix21J~y%ILb>Z#UpS z2T-lP;byH_6%~~lFHfjRrT#d0(!A4854U9YJkoBi%~wb;yC%{%Ma@@b?8OYw^HjZ( z0W5NC$iTD%y(WS7*`85 z6%`eUE^O{DyQ}QIBusL^;iI9~<+4nW9~%h|y4+?3(~T7<`}IXd^Lq9*E-CHpx{yV* zRa@nFQ8BSL>2#B}d{oI`0nJpm@ILwhlC763PQLaA*C+Q3%%~3ele;|vfuOffsXy`; z^~2%j8j)b_v&Ke^A1&4Hb&i8hR%#oInmpI8U6T??v9yxObdHLSmSB(HnT=zvp5T%v zo6EfU^5x4kxzBT6lPCG)Vke(H?{T0UnW7nY+&0#Dv(QAUkq#MDD{YoNmmfaU{1;|x zcXOeMRuHYMrWW#yFsY5l0)dHM<{Iol@JUx)??ekZ@ zuAnaS1Fv42DRSGliaB*ZJJ+v;!)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l7amd z;9&blu5B|Cq!NVx{gq?xIi;8wX82js>0RvG^>5#r%EI?7l*j^;_jx7O-IrhFXm$3w z3Bz(qKixB!mmUp`dmXZZ_D|>-6n@whCX#fSa=*1qe{n}~)*Fwv`Eo21Z-9HO>cx{P zrsXE^uxr|BtqXKhu0w)w5QN5sS*Vi2$bxW}i(O!bGS_*+lVvlcnhu#_F(En86!`2| zZXg(2nII9f1s9K)V}ZOYLiOIF=S1ez#3P?w2f>H}@{kh~g}>>(Jj)&+uX_HZEWbL@ zC3bJAqGgGsByxxO3yO;yz|63d9{(LGP8eoB^gO_(45P$;$x3cku->a~eA}PjZ;*ZF z=wRnrbMu+#opp-`JuuJXz^CrJ{FS&=i_el#mKT3TIXh3j;Y9chl|zf5Gy8BWO~?MT z(;Ivhme+{~1of#H4jQdlLWLnpAQ1LbwbysA&B+{8_@MuQlzw9|)5_9Ac|CGQ#M9+P zgNC6s&huyC9*KA;9X|~@)vh({hX_40Hp>Wk6}jMF*m+6-7#w`fvhfNCnT-U4(kMWV^A+T$FB)ZH(hNkVAm$C@aS3 zCY%Zgz?YI`c_mqK!X5rBc>?KHy`N1dW?vI!0du4{@PjvD`;x$xkzyPcp8iA%H0$|d z0jd~uCsN55`;B^*{u8A60@AaJHfy#GI$+6K#`4d`7gRFQ0+~dVBFg^J zu_Z`6eLaOJ6%+a*2yx<{Ekf=&1m&Q*i$7m}y!m`BInHO&q{cD84?nP(dO?Tt68WTLmUwiPo b958`5JL4-DGs|}9?h2S1St6?qa0&kdYS~k@ literal 0 HcmV?d00001 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 @@ + +