[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) <bib@odoo.com>
This commit is contained in:
niyasraphy
2023-01-20 21:57:15 +01:00
parent 5f5b0404f7
commit 7ba15dc1b6
2 changed files with 4 additions and 4 deletions
@@ -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')}]
+2 -2
View File
@@ -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,