diff --git a/web_hideleftmenu/README.rst b/web_hideleftmenu/README.rst new file mode 100644 index 00000000..5e711711 --- /dev/null +++ b/web_hideleftmenu/README.rst @@ -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 +`_. 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 +`_. + +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 +* Ahmet Altinisik + + +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. diff --git a/web_hideleftmenu/__init__.py b/web_hideleftmenu/__init__.py new file mode 100644 index 00000000..9bf8c33e --- /dev/null +++ b/web_hideleftmenu/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +# © Vauxoo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/web_hideleftmenu/__openerp__.py b/web_hideleftmenu/__openerp__.py new file mode 100644 index 00000000..38434a6e --- /dev/null +++ b/web_hideleftmenu/__openerp__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# © Vauxoo +# 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", + ], +} diff --git a/web_hideleftmenu/static/description/1.png b/web_hideleftmenu/static/description/1.png new file mode 100644 index 00000000..7fe29a63 Binary files /dev/null and b/web_hideleftmenu/static/description/1.png differ diff --git a/web_hideleftmenu/static/description/2.png b/web_hideleftmenu/static/description/2.png new file mode 100644 index 00000000..583a47df Binary files /dev/null and b/web_hideleftmenu/static/description/2.png differ 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..2f7cc2b7 --- /dev/null +++ b/web_hideleftmenu/static/src/xml/lib.xml @@ -0,0 +1,11 @@ + + \ No newline at end of file diff --git a/web_hideleftmenu/web_hideleftmenu_js.xml b/web_hideleftmenu/web_hideleftmenu_js.xml new file mode 100644 index 00000000..1def08bf --- /dev/null +++ b/web_hideleftmenu/web_hideleftmenu_js.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file