From 9c4c4b65bab3dee92a75bf73e2b1c0d88b5ad28b 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#162543 X-original-commit: dec1f870de9f7004a2935f61c79b83dada7a57a5 Signed-off-by: Habib Ayob (ayh) Signed-off-by: Moataz Hussein (mohu) --- 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 213f0f47ed7..714324cd23a 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 {