From dec1f870de9f7004a2935f61c79b83dada7a57a5 Mon Sep 17 00:00:00 2001 From: mizosoft Date: Wed, 3 Apr 2024 13:47:45 +0200 Subject: [PATCH] [FIX] account: constrict activities summaries within containing card Issue ----- The activities summaries displayed by the misc. operations view in the accounting app take up the entire screen and span across the card if the activity summary is too long. Steps ----- - Open the Accounting App. - Create a new entry from 'Miscellaneous Operations'. - Add an activity with a long summary. - Go back the dashboard. The summary will try to span the entire width. Cause ----- The activities are displayed with a field tag in the kanban view. The field tag refers to the activities js component as a widget. Due the use of a widget attribute, the template generates a div with class: "o_field_widget". This class is defined to have a css "display" attribe with a default value of "inline-block". Using "inline-block" causes the activity row to take up the whole width. opw-3839992 closes odoo/odoo#160167 Signed-off-by: Habib Ayob (ayh) --- addons/account/static/src/scss/account_journal_dashboard.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/account/static/src/scss/account_journal_dashboard.scss b/addons/account/static/src/scss/account_journal_dashboard.scss index 6abfca9f3fc2f..29aa003843d6f 100644 --- a/addons/account/static/src/scss/account_journal_dashboard.scss +++ b/addons/account/static/src/scss/account_journal_dashboard.scss @@ -31,6 +31,10 @@ .o_dashboard_graph { margin-bottom: -$o-horizontal-padding/2; } + + .o_field_widget.o_field_kanban_vat_activity { + display: block; + } } &.o_kanban_ungrouped {