diff options
| author | Deep Patel <dep@odoo.com> | 2018-08-06 15:47:40 +0530 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-08-20 13:40:20 +0200 |
| commit | 287501abbc92f7fe152dc61a296613f32c48b32c (patch) | |
| tree | 3a7af1a3419c74af4469ee40188c162121db425c /addons/web/static/src/xml | |
| parent | 49b5a5ba2542d8906c0602e67f46f1e7ac9bf1bd (diff) | |
[FIX] web: restore many2manytags colorpicker dropdown
Bug revealed with BS4.
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 5f6f8253bdf..9b6ef0099d5 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -833,10 +833,12 @@ <t t-foreach="elements" t-as="el"> <t t-set="color" t-value="el[colorField] || 0"/> <t t-set="colornames" t-value="['No color', 'Red', 'Orange', 'Yellow', 'Light blue', 'Dark purple', 'Salmon pink', 'Medium blue', 'Dark blue', 'Fushia', 'Green', 'Purple']"/> - <button t-attf-class="badge badge-pill dropdown o_tag_color_#{color}" t-att-data-color="color" t-att-data-index="el_index" t-att-data-id="el.id" t-attf-title="Tag color: #{colornames[color]}"> - <span class="o_badge_text" t-att-title="el.display_name"><span role="img" t-attf-aria-label="Tag color: #{colornames[color]}"/><t t-esc="el.display_name"/></span> - <a t-if="!readonly" class="fa fa-times o_delete" title="Delete" aria-label="Delete"/> - </button> + <div class="dropdown"> + <button t-attf-class="badge badge-pill dropdown-toggle o-no-caret o_tag_color_#{color}" data-toggle="dropdown" t-att-data-color="color" t-att-data-index="el_index" t-att-data-id="el.id" t-attf-title="Tag color: #{colornames[color]}"> + <span class="o_badge_text" t-att-title="el.display_name"><span role="img" t-attf-aria-label="Tag color: #{colornames[color]}"/><t t-esc="el.display_name"/></span> + <a t-if="!readonly" class="fa fa-times o_delete" title="Delete" aria-label="Delete"/> + </button> + </div> </t> </t> <t t-name="FieldMany2ManyTag.colorpicker"> |
