Browse Source

pep8 correction

pull/294/head
Ahmet Altinisik 9 years ago
parent
commit
a00fba3d4f
  1. 10
      web_hideleftmenu/README.rst
  2. 12
      web_hideleftmenu/__openerp__.py
  3. 12
      web_hideleftmenu/static/src/xml/lib.xml
  4. 20
      web_hideleftmenu/web_hideleftmenu_js.xml

10
web_hideleftmenu/README.rst

@ -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.

12
web_hideleftmenu/__openerp__.py

@ -12,7 +12,13 @@
"license": "AGPL-3", "license": "AGPL-3",
"application": False, "application": False,
"installable": True, "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
web_hideleftmenu/static/src/xml/lib.xml

@ -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-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>
</t>
</template> </template>

20
web_hideleftmenu/web_hideleftmenu_js.xml

@ -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"
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> </openerp>
Loading…
Cancel
Save