oihane
10 years ago
committed by
Pedro M. Baeza
9 changed files with 102 additions and 61 deletions
-
60web_group_expand/README.rst
-
34web_group_expand/__openerp__.py
-
BINweb_group_expand/static/description/expand_list.png
-
BINweb_group_expand/static/description/icon.png
-
24web_group_expand/static/description/index.html
-
18web_group_expand/static/src/css/expand_buttons.css
-
7web_group_expand/static/src/js/web_group_expand.js
-
9web_group_expand/static/src/xml/expand_buttons.xml
-
11web_group_expand/views/templates.xml
@ -0,0 +1,60 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:alt: License: AGPL-3 |
|||
|
|||
==================== |
|||
Group Expand Buttons |
|||
==================== |
|||
|
|||
A group by list can be expanded and collapased with buttons |
|||
|
|||
You'll see two buttons appear on top right corner of the list when you perform |
|||
a group by with which you can expand and collapse grouped records by level. |
|||
|
|||
|
|||
Usage |
|||
===== |
|||
|
|||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|||
:alt: Try me on Runbot |
|||
:target: https://runbot.odoo-community.org/runbot/162/8.0 |
|||
|
|||
For further information, please visit: |
|||
|
|||
* https://www.odoo.com/forum/help-1 |
|||
|
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/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 |
|||
`here <https://github.com/OCA/web/issues/new?body=module:%20web_group_expand%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
|||
|
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Mantavya Gajjar <mga@openerp.com> |
|||
* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es> |
|||
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com> |
|||
* Jay Vora (SerpentCS) for their alternative implementation |
|||
|
|||
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 http://odoo-community.org. |
|||
|
@ -1,19 +1,19 @@ |
|||
{ |
|||
"name" : "Group Expand Buttons", |
|||
"category": "Hidden", |
|||
"version" : '1.0', |
|||
"author" : 'OpenERP SA', |
|||
"description": |
|||
""" |
|||
A group by list can be expanded and collapased with buttons |
|||
=============================================================== |
|||
You'll see two buttons appear on top right corner of the list when you perform a group by with which you can expand and collapse grouped records by level. |
|||
""", |
|||
"depends" : ["web"], |
|||
"js": ["static/src/js/web_group_expand.js"], |
|||
'qweb' : ["static/src/xml/expand_buttons.xml"], |
|||
'css' : ["static/src/css/expand_buttons.css"], |
|||
'installable': True, |
|||
'auto_install': False, |
|||
"name": "Group Expand Buttons", |
|||
"category": "Web", |
|||
"version": "8.0.1.0.0", |
|||
"author": "OpenERP SA, " |
|||
"AvanzOSC, " |
|||
"Serv. Tecnol. Avanzados - Pedro M. Baeza, " |
|||
"Odoo Community Association (OCA)", |
|||
"depends": [ |
|||
"web" |
|||
], |
|||
"qweb": [ |
|||
"static/src/xml/expand_buttons.xml", |
|||
], |
|||
"data": [ |
|||
"views/templates.xml", |
|||
], |
|||
"installable": True, |
|||
} |
|||
|
Before Width: 1140 | Height: 636 | Size: 78 KiB |
Before Width: 93 | Height: 53 | Size: 4.8 KiB After Width: 420 | Height: 420 | Size: 5.3 KiB |
@ -1,24 +0,0 @@ |
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_span12"> |
|||
<h2 class="oe_slogan">Expand and Collapse Group By</h2> |
|||
<h3 class="oe_slogan">A group by list can be expanded and collapased with buttons</h3> |
|||
</div> |
|||
<div class="oe_span6"> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<a href="https://www.openerp.com"> |
|||
<img src="expand_list.png"> |
|||
</a> |
|||
<div class="oe_demo_footer oe_centeralign">Online Demo</div> |
|||
</div> |
|||
</div> |
|||
<div class="oe_span6"> |
|||
<p class="oe_mt32"> |
|||
You'll see two buttons <img src="icon.png" width="50" height="35"> appear on top right corner of the list when you perform a group by with which you can expand and collapse grouped records by level. |
|||
</p> |
|||
<div class="oe_centeralign oe_websiteonly"> |
|||
<a href="mailto:sales@openerp.com" class="oe_button oe_big oe_tacky">Contact Us</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
@ -1,18 +1,8 @@ |
|||
|
|||
.openerp ul#oe_group_by li.oe_group_expand{ |
|||
border: none; |
|||
border-top: 1px solid #ababab; |
|||
position:relative; |
|||
font-size:13px; |
|||
transform: rotate(90deg); |
|||
-webkit-transform: rotate(90deg); |
|||
line-height: 25px; |
|||
} |
|||
.openerp hr.oe_expand_button_hr{ |
|||
height:2px; |
|||
visibility:hidden; |
|||
margin-bottom:-7px; |
|||
} |
|||
.openerp #oe_group_by_reset { |
|||
top:3px; |
|||
position:relative; |
|||
.openerp .fa-expand, .openerp .fa-compress { |
|||
font-size:15px; |
|||
font-weight:bold; |
|||
} |
@ -1,8 +1,11 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!-- vim:fdl=1: |
|||
--> |
|||
<templates id="template" xml:space="preserve"> |
|||
<t t-name="GroupExpand.Buttons"> |
|||
<div class="oe_list_buttons"><ul id="oe_group_by" class="oe_view_manager_switch oe_button_group oe_right"><li class="oe_i oe_group_expand"><a id="oe_group_by_expand"><hr class="oe_expand_button_hr"/>( )</a></li><li class="oe_i"><a id="oe_group_by_reset">P</a></li></ul></div> |
|||
<div class="oe_list_buttons"> |
|||
<ul id="oe_group_by" class="oe_view_manager_switch oe_button_group oe_right"> |
|||
<li class="oe_group_expand"><a id="oe_group_by_expand"><i class="fa fa-expand" id="expand_icon" /></a></li> |
|||
<li class="oe_group_expand"><a id="oe_group_by_reset"><i class="fa fa-compress" id="compress_icon" /></a></li> |
|||
</ul> |
|||
</div> |
|||
</t> |
|||
</templates> |
@ -0,0 +1,11 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<template id="assets_backend" name="web_groupby_expand assets" inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> |
|||
<script type="text/javascript" src="/web_group_expand/static/src/js/web_group_expand.js"></script> |
|||
<link rel="stylesheet" href="/web_group_expand/static/src/css/expand_buttons.css"/> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue