Skip to content

Commit

Permalink
[FIX] account: constrict activities summaries within containing card
Browse files Browse the repository at this point in the history
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 #162551

X-original-commit: dec1f87
Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
Signed-off-by: Moataz Hussein (mohu) <mohu@odoo.com>
  • Loading branch information
mizosoft committed Apr 19, 2024
1 parent ff523e9 commit 0ae4cbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/account/static/src/scss/account_journal_dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0ae4cbf

Please sign in to comment.