From 7ba15dc1b69094f38f26a67aa94d804b9e86d2d9 Mon Sep 17 00:00:00 2001 From: niyasraphy Date: Fri, 6 Jan 2023 05:38:11 +0000 Subject: [PATCH] [FIX] account: replace style with bootstrap 5 class replacing text-right with text-end in bs5 closes odoo/odoo#110615 X-original-commit: 6ed24e9b870c63e0a159164d383983c4c0f3c56c Related: odoo/enterprise#36123 Signed-off-by: Brice Bartoletti (bib) --- addons/account/wizard/account_automatic_entry_wizard.py | 4 ++-- addons/account/wizard/accrued_orders.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/account/wizard/account_automatic_entry_wizard.py b/addons/account/wizard/account_automatic_entry_wizard.py index 54052dba492..62bc9beaf4c 100644 --- a/addons/account/wizard/account_automatic_entry_wizard.py +++ b/addons/account/wizard/account_automatic_entry_wizard.py @@ -302,8 +302,8 @@ class AutomaticEntryWizard(models.TransientModel): preview_columns = [ {'field': 'account_id', 'label': _('Account')}, {'field': 'name', 'label': _('Label')}, - {'field': 'debit', 'label': _('Debit'), 'class': 'text-right text-nowrap'}, - {'field': 'credit', 'label': _('Credit'), 'class': 'text-right text-nowrap'}, + {'field': 'debit', 'label': _('Debit'), 'class': 'text-end text-nowrap'}, + {'field': 'credit', 'label': _('Credit'), 'class': 'text-end text-nowrap'}, ] if record.action == 'change_account': preview_columns[2:2] = [{'field': 'partner_id', 'label': _('Partner')}] diff --git a/addons/account/wizard/accrued_orders.py b/addons/account/wizard/accrued_orders.py index a766a1e1d84..1be629d7b63 100644 --- a/addons/account/wizard/accrued_orders.py +++ b/addons/account/wizard/accrued_orders.py @@ -90,8 +90,8 @@ class AccruedExpenseRevenue(models.TransientModel): preview_columns = [ {'field': 'account_id', 'label': _('Account')}, {'field': 'name', 'label': _('Label')}, - {'field': 'debit', 'label': _('Debit'), 'class': 'text-right text-nowrap'}, - {'field': 'credit', 'label': _('Credit'), 'class': 'text-right text-nowrap'}, + {'field': 'debit', 'label': _('Debit'), 'class': 'text-end text-nowrap'}, + {'field': 'credit', 'label': _('Credit'), 'class': 'text-end text-nowrap'}, ] record.preview_data = json.dumps({ 'groups_vals': preview_vals,