Skip to content

Commit

Permalink
pep8 correction
Browse files Browse the repository at this point in the history
  • Loading branch information
aaltinisik committed Jan 19, 2016
1 parent 2efec72 commit a00fba3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 26 deletions.
10 changes: 5 additions & 5 deletions web_hideleftmenu/README.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
: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.
Expand All @@ -17,7 +17,7 @@ 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
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/repo/github-com-oca-web-162


Expand Down Expand Up @@ -51,7 +51,7 @@ Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.
Expand Down
12 changes: 9 additions & 3 deletions web_hideleftmenu/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["web",],
"data": ["web_hideleftmenu_js.xml",],
"qweb": ["static/src/xml/lib.xml",],
"depends": [
"web",
],
"data": [
"web_hideleftmenu_js.xml",
],
"qweb": [
"static/src/xml/lib.xml",
],
}
12 changes: 6 additions & 6 deletions web_hideleftmenu/static/src/xml/lib.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<template>

<t t-extend="UserMenu">
<t t-name="web_hideleftmenu.hidemenu" t-jquery="ul.dropdown-menu li:last" t-operation="after">
<li class="oe_hidemenu">
<a href="#">Hide/Show Menu</a>
</li>
<t t-extend="UserMenu">
<t t-name="web_hideleftmenu.hidemenu" t-jquery="ul.dropdown-menu li:last" t-operation="after">
<li class="oe_hidemenu">
<a href="#">Hide/Show Menu</a>
</li>
</t>
</t>
</t>
</template>
20 changes: 8 additions & 12 deletions web_hideleftmenu/web_hideleftmenu_js.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<data>

<template id="hideleft_assets_backend" name="web_hideleftmenu assets"
inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet"
href="/web_hideleftmenu/static/src/css/lib.css"/>
<script type="text/javascript"
src="/web_hideleftmenu/static/src/js/lib.js"></script>
</xpath>
</template>
<template id="hideleft_assets_backend" name="web_hideleftmenu assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/web_hideleftmenu/static/src/css/lib.css"/>
<script type="text/javascript" src="/web_hideleftmenu/static/src/js/lib.js"></script>
</xpath>
</template>


</data>
</data>
</openerp>

0 comments on commit a00fba3

Please sign in to comment.