pep8 correction

pull/294/head
Ahmet Altinisik 2016-01-19 15:38:12 +02:00
parent 2efec729c4
commit a00fba3d4f
4 changed files with 28 additions and 26 deletions

View File

@ -1,10 +1,10 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg .. 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 :alt: License: AGPL-3
================================ ===============================
Hide left Menu in Web interface Hide left Menu in Web interface
================================ ===============================
This module adds a menu item after logout link to hide or show left menu. 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. It is useful on small screens or tree views with many columns.
@ -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. * 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 .. 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 :target: https://runbot.odoo-community.org/runbot/repo/github-com-oca-web-162
@ -51,7 +51,7 @@ Maintainer
---------- ----------
.. image:: https://odoo-community.org/logo.png .. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association :alt: Odoo Community Association
:target: https://odoo-community.org :target: https://odoo-community.org
This module is maintained by the OCA. This module is maintained by the OCA.

View File

@ -12,7 +12,13 @@
"license": "AGPL-3", "license": "AGPL-3",
"application": False, "application": False,
"installable": True, "installable": True,
"depends": ["web",], "depends": [
"data": ["web_hideleftmenu_js.xml",], "web",
"qweb": ["static/src/xml/lib.xml",], ],
"data": [
"web_hideleftmenu_js.xml",
],
"qweb": [
"static/src/xml/lib.xml",
],
} }

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<template> <template>
<t t-extend="UserMenu"> <t t-extend="UserMenu">
<t t-name="web_hideleftmenu.hidemenu" t-jquery="ul.dropdown-menu li:last" t-operation="after"> <t t-name="web_hideleftmenu.hidemenu" t-jquery="ul.dropdown-menu li:last" t-operation="after">
<li class="oe_hidemenu"> <li class="oe_hidemenu">
<a href="#">Hide/Show Menu</a> <a href="#">Hide/Show Menu</a>
</li> </li>
</t> </t>
</t> </t>
</template> </template>

View File

@ -1,17 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data> <data>
<template id="hideleft_assets_backend" name="web_hideleftmenu assets" <template id="hideleft_assets_backend" name="web_hideleftmenu assets" inherit_id="web.assets_backend">
inherit_id="web.assets_backend">
<xpath expr="." position="inside"> <xpath expr="." position="inside">
<link rel="stylesheet" <link rel="stylesheet" href="/web_hideleftmenu/static/src/css/lib.css"/>
href="/web_hideleftmenu/static/src/css/lib.css"/> <script type="text/javascript" src="/web_hideleftmenu/static/src/js/lib.js"></script>
<script type="text/javascript"
src="/web_hideleftmenu/static/src/js/lib.js"></script>
</xpath> </xpath>
</template> </template>
</data>
</data>
</openerp> </openerp>