[FIX] hr_expense: expense categories padding issue

Before: in Expense Categories list view, if Internal Notes wasn't empty it would  cause a padding issue. The issue's cause was that the Internal Notes columns is an HTML field, where every line is assigned a margin-bottom.

Now: fixed the padding issue by removing the margin-bottom for the last line in the Internal Notes field.

task-32999162

closes odoo/odoo#121014

X-original-commit: f6bffc092ddc4bdfd9d68efe66dbbcdeed4f0309
Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
Ali Alfie (alal)
2023-05-15 11:41:29 +02:00
parent 9113a17a8b
commit 2f2250622b
2 changed files with 5 additions and 1 deletions
@@ -34,3 +34,7 @@
height: 100%;
}
}
.o_expense_categories td[name="description"] p:last-child {
margin-bottom: 0;
}
+1 -1
View File
@@ -567,7 +567,7 @@
<field name="name">product.product.expense.categories.tree.view</field>
<field name="model">product.product</field>
<field name="arch" type="xml">
<tree>
<tree class="o_expense_categories">
<field name="name" readonly="1"/>
<field name="default_code" optional="show" readonly="1"/>
<field name="description" widget="html" string="Internal Note" optional="show" readonly="1"/>