From ece1e3d93fda7dcede36566699b45e06738701c5 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Fri, 17 Aug 2018 11:48:55 +0200 Subject: [PATCH] [FIX] *: BS4, restore right-aligned columns With BS3, if a column was supposed to be aligned on the right, using the 'pull-right' class on it did the trick. With BS4, this is not the case anymore as .row elements use flex. This commit use one of those 3 solutions case per case: - If the column was alone on its row, then adding the 'justify-content-end' class on the row. - If the column was not alone on its row, then adding the 'ml-auto' class on the column instead. - If the column was already filling the row, there was no point in aligning it to the right Note: this commit does not case about potential xpath which would add new columns in one of those rows. If any, this can be handled as a fix later. --- addons/account/views/account_view.xml | 2 +- addons/account/views/report_invoice.xml | 4 ++-- addons/account/views/report_journal.xml | 4 ++-- addons/account_asset/views/account_asset_views.xml | 2 +- addons/analytic/views/analytic_account_views.xml | 2 +- addons/hr_expense/report/hr_expense_report.xml | 4 ++-- .../views/report_contributionregister_templates.xml | 4 ++-- .../l10n_fr_hr_payroll/report/report_l10n_fr_fiche_paye.xml | 2 +- addons/lunch/report/lunch_order_templates.xml | 4 ++-- addons/point_of_sale/views/report_statement.xml | 4 ++-- addons/purchase/report/purchase_order_templates.xml | 4 ++-- addons/repair/report/repair_templates_repair_order.xml | 4 ++-- addons/sale_stock/report/stock_report_deliveryslip.xml | 4 ++-- addons/stock/report/report_stockinventory.xml | 4 ++-- addons/stock/report/report_stockpicking_operations.xml | 4 ++-- addons/stock/views/stock_move_views.xml | 2 +- addons/website_slides/views/website_slides_embed.xml | 2 +- odoo/addons/base/views/res_currency_views.xml | 2 +- 18 files changed, 29 insertions(+), 29 deletions(-) diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index f0def971791..66712742be1 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -1074,7 +1074,7 @@
-
+
diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index b5876623cc9..1a9e7b54244 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -139,8 +139,8 @@
-
-
+
+
diff --git a/addons/account/views/report_journal.xml b/addons/account/views/report_journal.xml index 740fb4aad79..8e831f550e0 100644 --- a/addons/account/views/report_journal.xml +++ b/addons/account/views/report_journal.xml @@ -60,8 +60,8 @@
Subtotal
-
-
+
+
diff --git a/addons/account_asset/views/account_asset_views.xml b/addons/account_asset/views/account_asset_views.xml index cc1de28907e..6acfbe984ab 100644 --- a/addons/account_asset/views/account_asset_views.xml +++ b/addons/account_asset/views/account_asset_views.xml @@ -255,7 +255,7 @@
-
+
diff --git a/addons/analytic/views/analytic_account_views.xml b/addons/analytic/views/analytic_account_views.xml index bfd7e19f800..8b5b51f164f 100644 --- a/addons/analytic/views/analytic_account_views.xml +++ b/addons/analytic/views/analytic_account_views.xml @@ -352,7 +352,7 @@
-
+
diff --git a/addons/hr_expense/report/hr_expense_report.xml b/addons/hr_expense/report/hr_expense_report.xml index 562deba76b1..411eb88a6e1 100644 --- a/addons/hr_expense/report/hr_expense_report.xml +++ b/addons/hr_expense/report/hr_expense_report.xml @@ -81,8 +81,8 @@
Total
-
-
+
+
diff --git a/addons/hr_payroll/views/report_contributionregister_templates.xml b/addons/hr_payroll/views/report_contributionregister_templates.xml index b7ec13cfec6..021e6c0f1ca 100644 --- a/addons/hr_payroll/views/report_contributionregister_templates.xml +++ b/addons/hr_payroll/views/report_contributionregister_templates.xml @@ -52,8 +52,8 @@
Total
-
-
+
+
diff --git a/addons/l10n_fr_hr_payroll/report/report_l10n_fr_fiche_paye.xml b/addons/l10n_fr_hr_payroll/report/report_l10n_fr_fiche_paye.xml index 0202926bb21..fe6a0cff3a6 100644 --- a/addons/l10n_fr_hr_payroll/report/report_l10n_fr_fiche_paye.xml +++ b/addons/l10n_fr_hr_payroll/report/report_l10n_fr_fiche_paye.xml @@ -11,7 +11,7 @@

Bulletin de paie

Paie du au

-
+
Total
diff --git a/addons/lunch/report/lunch_order_templates.xml b/addons/lunch/report/lunch_order_templates.xml index 370ffcf2ab2..82290ce2310 100644 --- a/addons/lunch/report/lunch_order_templates.xml +++ b/addons/lunch/report/lunch_order_templates.xml @@ -57,8 +57,8 @@
-
-
+
+
diff --git a/addons/point_of_sale/views/report_statement.xml b/addons/point_of_sale/views/report_statement.xml index 63dded422c7..a0aab97babc 100644 --- a/addons/point_of_sale/views/report_statement.xml +++ b/addons/point_of_sale/views/report_statement.xml @@ -62,8 +62,8 @@
Total
-
-
+
+
diff --git a/addons/purchase/report/purchase_order_templates.xml b/addons/purchase/report/purchase_order_templates.xml index bb7be36e03b..a475acce4ca 100644 --- a/addons/purchase/report/purchase_order_templates.xml +++ b/addons/purchase/report/purchase_order_templates.xml @@ -78,8 +78,8 @@
Total
-
-
+
+
diff --git a/addons/repair/report/repair_templates_repair_order.xml b/addons/repair/report/repair_templates_repair_order.xml index 2c08a0ddad6..59972c3c33f 100644 --- a/addons/repair/report/repair_templates_repair_order.xml +++ b/addons/repair/report/repair_templates_repair_order.xml @@ -118,8 +118,8 @@
Subtotal
-
-
+
+
diff --git a/addons/sale_stock/report/stock_report_deliveryslip.xml b/addons/sale_stock/report/stock_report_deliveryslip.xml index 9fe7da5a003..c127bdad671 100644 --- a/addons/sale_stock/report/stock_report_deliveryslip.xml +++ b/addons/sale_stock/report/stock_report_deliveryslip.xml @@ -2,8 +2,8 @@