diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-03-18 10:29:55 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-03-18 10:29:55 +0100 |
| commit | b987405134e09aeacabbeeeb3edbdf3fe64ce065 (patch) | |
| tree | c98d7f657dee69b8175eff2a78b382c5f0d7d58a /addons/web/static/src/xml | |
| parent | af1c00ac3bb6e75ae4edb6596957f6c4a28de249 (diff) | |
[IMP] Sidebar: added a new section for the sidebar, the buttons section.
When having actions to display in the 'more' menu and if the action id is present
in the context, get the action out of the menu to display a specific red button.
This is used to highlight some specific action to do in a given flow. For example
when going to a list view from a button, with an action that should be the next
one to perform, it allows to display the button once at least one record is
selected.
bzr revid: tde@openerp.com-20140318092955-vym3d7xkl3mmf62i
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 7ba06b69095..6f1c98cdda2 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -599,10 +599,16 @@ <div class="oe_sidebar"> <t t-foreach="widget.sections" t-as="section"> <div class="oe_form_dropdown_section"> - <button class="oe_dropdown_toggle oe_dropdown_arrow"> + <button class="oe_dropdown_toggle oe_dropdown_arrow" t-if="section.name != 'buttons'"> <t t-if="section.name == 'files'" t-raw="widget.items[section.name].length || ''"/> <t t-esc="section.label"/> </button> + <t t-if="section.name == 'buttons'" t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname"> + <button t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" + target="_blank" class="oe_sidebar_button oe_highlight"> + <t t-raw="item.label"/> + </button> + </t> <ul class="oe_dropdown_menu"> <li t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname"> <t t-if="section.name == 'files'"> |
