From 1484765caa5415d16e8f8dc0c10d66c2847a7a00 Mon Sep 17 00:00:00 2001 From: "Stefan-Calin Crainiciuc (stcc)" <stcc@odoo.com> Date: Wed, 23 Nov 2022 16:08:45 +0000 Subject: [PATCH] [FIX] account: narration css overlap Steps to reproduce: - Open an invoice - Enter a long link without spaces in the terms and conditions field - Save Issue: The word doesn't break and spans outside its bounding box, possibly overlapping with the subtotal footer on the right. Solution: Add class `text-break` to the narration field. opw-3050054 closes odoo/odoo#106359 Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com> --- addons/account/views/account_move_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 535c04569446..247cec8b2dfd 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -929,7 +929,7 @@ <field name="invoice_payments_widget" colspan="2" nolabel="1" widget="payment"/> <field name="amount_residual" class="oe_subtotal_footer_separator" attrs="{'invisible': [('state', '=', 'draft')]}"/> </group> - <field name="narration" placeholder="Terms and Conditions" class="oe_inline" nolabel="1"/> + <field name="narration" placeholder="Terms and Conditions" class="oe_inline text-break" nolabel="1"/> <field name="invoice_outstanding_credits_debits_widget" class="oe_invoice_outstanding_credits_debits" @@ -1109,7 +1109,7 @@ </group> </group> <!-- Internal note --> - <field name="narration" placeholder="Add an internal note..." nolabel="1" height="50"/> + <field name="narration" placeholder="Add an internal note..." nolabel="1" class="text-break" height="50"/> </page> </notebook> </sheet> -- GitLab