mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_group_expand: Migration to 16.0
This commit is contained in:
committed by
andrea
parent
facb44a8bf
commit
75db1ac05f
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates>
|
||||
<t t-name="web_group_expand.Buttons">
|
||||
<nav class="btn-group oe_group_by_expand_buttons o_hidden">
|
||||
<button
|
||||
class="btn btn-secondary fa fa-expand"
|
||||
id="oe_group_by_expand"
|
||||
title="Expand groups"
|
||||
type="button"
|
||||
/>
|
||||
<button
|
||||
class="btn btn-secondary fa fa-compress"
|
||||
id="oe_group_by_collapse"
|
||||
title="Collapse groups"
|
||||
type="button"
|
||||
/>
|
||||
</nav>
|
||||
</t>
|
||||
</templates>
|
||||
23
web_group_expand/static/src/xml/list_controller.xml
Normal file
23
web_group_expand/static/src/xml/list_controller.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates xml:space="preserve">
|
||||
<t t-inherit="web.ListView.Buttons" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//div[hasclass('o_list_buttons')]" position="inside">
|
||||
<t t-if="model.root.isGrouped">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-secondary fa fa-expand oe_group_by_expand"
|
||||
data-tooltip="Expand"
|
||||
aria-label="Expand"
|
||||
t-on-click="expandAllGroups"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-secondary fa fa-compress oe_group_by_collapse"
|
||||
data-tooltip="Compress"
|
||||
aria-label="Compress"
|
||||
t-on-click="collapseAllGroups"
|
||||
/>
|
||||
</t>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user