From 46751de5069960fdc282446212998f82cede646b Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Wed, 14 Jun 2017 16:37:22 +0200 Subject: [FIX] web: correctly style `o_status` class The `o_status` style has been moved in a previous rev. in `fields.less` which is only for `o_field_widget` nodes. This class however is used in other context than a field (e.g. on a label in the project.task.type form view) so its style needs to be placed at an upper level. --- addons/web/static/src/less/fields.less | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'addons/web/static/src/less/fields.less') diff --git a/addons/web/static/src/less/fields.less b/addons/web/static/src/less/fields.less index b070a8f4cc8..1afe611ee9e 100644 --- a/addons/web/static/src/less/fields.less +++ b/addons/web/static/src/less/fields.less @@ -180,24 +180,6 @@ } } - // Status - &.o_selection .o_status { - display: inline-block; - height: 12px; - width: 12px; - border-radius: 6px; - vertical-align: middle; - - background-color: @odoo-brand-secondary; - - &.o_status_green { - background-color: @brand-success; - } - &.o_status_red { - background-color: @brand-danger; - } - } - // Specific success color for toggle_button widget .fa.o_toggle_button_success { color: @brand-success; -- cgit v1.2.3 From 0c2e018d4c416d0f47a3b64f1c28ce067dbab291 Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Wed, 14 Jun 2017 17:57:30 +0200 Subject: [FIX] web: display dashboard graphs in full-width With the new views, the class `o_field_widget` is added on every field widget and is styled with `display: inline-block`. The dashboards used to display graphs in full-width so this behaviour is restored. --- addons/web/static/src/less/fields.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/less/fields.less') diff --git a/addons/web/static/src/less/fields.less b/addons/web/static/src/less/fields.less index 1afe611ee9e..02885ef3514 100644 --- a/addons/web/static/src/less/fields.less +++ b/addons/web/static/src/less/fields.less @@ -33,7 +33,7 @@ } // Block fields - &.note-editor, &.oe_form_field_html, &.oe_form_field_html_text, &.oe_form_field_text, &.o_view_manager_content, &.o_field_domain { + &.note-editor, &.oe_form_field_html, &.oe_form_field_html_text, &.oe_form_field_text, &.o_view_manager_content, &.o_field_domain, &.o_graph_linechart, &.o_graph_barchart { display: block; } -- cgit v1.2.3