diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-07-14 18:29:24 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-07-14 18:38:29 +0200 |
| commit | 18dc5b3b8720d013ef51aa6fe1a8469610380ece (patch) | |
| tree | 33cb6c4903de919bd759172b87452dd3213fd6ac /addons/web/static/src/xml | |
| parent | 1fca5e01cbfa0366725b448641d6cd86daa0a23a (diff) | |
[FIX] web: default many2many tags color
When there is no `color` field on the model
e.g. On invoice line taxes
The color class to apply on the badge was set to
`o_tag_color_undefined`
which doesn't exist. It must be set
from `o_tag_color_0` to `o_tag_color_10`
in order have a color.
Because of this, the taxes in the invoices lines
were not visible, because they were written in white
on a white background.
This has been broken by the below revision:
fe66472e2cf7844c21ec438921307330ae562668
removing the or statement (`||`) to set a default
color for models not having a `color` field.
We choose to set `10` as default value, so the color
remains the same compared to the previous release
(light grey). However, if the new behavior chosen
by the usability is to have these in black, it should then
be changed to `0` again.
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 2 |
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 73ec56e0ea7..08dcffb1bb1 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -749,7 +749,7 @@ </t> <t t-name="FieldMany2ManyTag"> <t t-foreach="elements" t-as="el"> - <span t-attf-class="badge dropdown o_tag_color_#{el.color}" t-att-data-color="el.color" t-att-data-index="el_index" t-att-data-id="el.id"> + <span t-attf-class="badge dropdown o_tag_color_#{el.color || 10}" t-att-data-color="el.color || 10" t-att-data-index="el_index" t-att-data-id="el.id"> <span class="o_badge_text" t-attf-title="#{el['display_name']}"><t t-raw="el['display_name']"/></span> <span t-if="!readonly" class="fa fa-times o_delete"/> </span> |
