From da18d801053e508f689196409b0c70cdb2389985 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#106625

X-original-commit: 1484765caa5415d16e8f8dc0c10d66c2847a7a00
Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com>
Signed-off-by: Stefan-Calin Crainiciuc (stcc) <stcc@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 5992dd1ada83..85d9183559a5 100644
--- a/addons/account/views/account_move_views.xml
+++ b/addons/account/views/account_move_views.xml
@@ -1061,7 +1061,7 @@
                                 </field>
                                 <group col="12" class="oe_invoice_lines_tab">
                                     <group colspan="8">
-                                        <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"/>
                                     </group>
                                     <!-- Totals (only invoices / receipts) -->
                                     <group colspan="4">
@@ -1268,7 +1268,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