From e429addc1dd8334e552ab49377bbb4e8035581b1 Mon Sep 17 00:00:00 2001 From: momegahed Date: Mon, 20 Feb 2023 15:14:45 +0000 Subject: [PATCH] [FIX] web: invoice preview is not rendered correctly Steps to reproduce: - go to any invoice - click on Preview - the lines after the invoice number are in separate rows Bug: here is bootstrap 4 implementation of `.col-3` ``` .col-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } ``` and here is bootstrap 5 implementation: ``` .col-3 { flex: 0 0 auto; width: 25%; } ``` we can notice that bootstrap 5 changed the way that the width is applied to the flex object. now in https://github.com/odoo/odoo/pull/51715 the width property is overridden for the class `.col-auto` which is not useful in bootstrap 5 anymore anyway. This creates a problem with elements that are both `col-auto` and `col-3` as the override from `col-auto` misses with the new `col-3` implementation Fix: remove the override of `width` OPW-3171131 closes odoo/odoo#113938 X-original-commit: b9d19643cbdfb58531f5bd7020f26c905df9c5b8 Signed-off-by: Grazioso Andrea (agr) Signed-off-by: Mohamed Megahed Abbas Megahed SALLAM (mome) --- addons/web/static/src/webclient/actions/reports/report.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/web/static/src/webclient/actions/reports/report.scss b/addons/web/static/src/webclient/actions/reports/report.scss index 11e11430bf6..c2ca9e270cb 100644 --- a/addons/web/static/src/webclient/actions/reports/report.scss +++ b/addons/web/static/src/webclient/actions/reports/report.scss @@ -176,7 +176,6 @@ ul.o_checklist { // when 6+ columns are rendered .col-auto{ -webkit-box-flex: 1 !important; - width: 100% !important; } // Boostrap 5 introduces variable paddings for container which wkhtmltopdf doesn't seem to process, so we restore Boostrap 4's paddings for PDFs