From 8a7bf14fbbfe33a2ec78e87e2bdd83fb2090671c Mon Sep 17 00:00:00 2001 From: Kartik Chavda Date: Wed, 14 Jun 2023 05:48:14 +0000 Subject: [PATCH] [FIX] web: fix new line in confirmation and alert dialog Steps: - Install studio. - Open studio. - Click on reset default view. Issue: - Confirmation dialog body display in single line instead in multiple lines same thing happens in pos confirmation dialog also in new friendly message task we need to display error message in multiple line. Cause: - There is a style missing on body of that dialog to preserve white spaces also need to use other tag then to apply proper style Fix: - Use

tag instead tag and add a `text-prewrap` class in bootstrap utility class and use this class in `

` to preserve space. task-3356114 closes odoo/odoo#125300 X-original-commit: 700d41d2f007124390b7cafca0a2e58a467e2b43 Related: odoo/enterprise#42842 Signed-off-by: Pierre Paridans (app) --- .../core/confirmation_dialog/confirmation_dialog.xml | 4 ++-- addons/web/static/src/core/errors/error_dialogs.xml | 12 ++++++------ addons/web/static/src/scss/utilities_custom.scss | 9 +++++++++ .../form/form_error_dialog/form_error_dialog.xml | 2 +- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/addons/web/static/src/core/confirmation_dialog/confirmation_dialog.xml b/addons/web/static/src/core/confirmation_dialog/confirmation_dialog.xml index f91fd1f4938..5383cef8b08 100644 --- a/addons/web/static/src/core/confirmation_dialog/confirmation_dialog.xml +++ b/addons/web/static/src/core/confirmation_dialog/confirmation_dialog.xml @@ -3,7 +3,7 @@

- +

@@ -15,7 +15,7 @@

-

+