summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2019-03-13 16:40:08 +0000
committerAaron Bohy <aab@odoo.com>2019-04-02 11:55:57 +0000
commit015958dc1730296e216a035f3b12b92df2dbd6c8 (patch)
tree1499283c74febf9d360777b8a3cfc4c733ac1089 /addons/web/static/src/xml
parent2be28d4d033b5930e5a16ff02407315a116e9043 (diff)
[IMP] web,base: put buttons in list group headers
It is now possible to put buttons in the list view group headers. When the view is grouped by a many2one field, those buttons appear next to the header title when the group is opened. The buttons are specified in the views in a <groupby> tag in the list arch, with the following structure: <groupby name="groupedField"> <!-- must be a many2one --> <button type="object" name="my_method" string="Button1"/> </groupby> It is also possible to add `field`, inside the `groupby` which can be used for modifiers. These fields thus belong on the many2one comodel, like: <groupby name="partner_id"> <field name="name"/> <!-- name of partner_id --> <button type="object" name="my_method" string="Button1" attrs="{'invisible': [('name', '=', 'Georges')]}"/> </groupby> These extra fields are fetched in batch when grouping on the field. Part of task 1915702
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 75426a36d06..f9db8432275 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1498,7 +1498,7 @@
</button>
</t>
-<div t-name="Pager">
+<div t-name="Pager" class="o_pager">
<span class="o_pager_counter">
<span class="o_pager_value"></span> / <span class="o_pager_limit"></span>
</span>