[FIX] account, web: display total and subtotals correctly rtl lang

Issue :
After the last fix https://github.com/odoo/odoo/pull/124663
there is still an issue of currency placements and alignement
of numbers in rtl language at the total and subtotals.

Steps to reproduce the isse :
1-create an invoice and confirm it.
2-install accounting
3-go to accounting/customer invoices and choose the created invoice

Origin of the problem :
The fields displayed didn't have the appropriate classes and the
style for number and monetary values for rtl language is missing from
the css folder.

Fix:
I applied the class on the `td` tag and `span` tag.

opw-3295573

closes odoo/odoo#132572

X-original-commit: e3eb140fb431aa1fc08e718d79f332c50e86c079
Signed-off-by: Bastien Fafchamps (bafa) <bafa@odoo.com>
Signed-off-by: Mahdi Cheikh Rouhou (macr) <macr@odoo.com>
This commit is contained in:
Mahdi Cheikh Rouhou (macr)
2023-08-21 19:57:55 +02:00
parent 6a35f242a7
commit e43ee20eb0
2 changed files with 21 additions and 5 deletions
@@ -24,14 +24,14 @@
<t t-else="">
<span class="o_tax_group_edit" t-on-click.prevent="() => this.setState('edit')">
<i class="fa fa-pencil me-2"/>
<span class="o_tax_group_amount_value">
<span class="o_tax_group_amount_value o_list_monetary">
<t t-out="props.taxGroup.formatted_tax_group_amount"/>
</span>
</span>
</t>
</t>
<t t-else="">
<span class="o_tax_group_amount_value">
<span class="o_tax_group_amount_value o_list_monetary">
<t t-out="props.taxGroup.formatted_tax_group_amount" style="white-space: nowrap;"/>
</span>
</t>
@@ -48,7 +48,7 @@
<label class="o_form_label o_tax_total_label" t-out="subtotal['name']"/>
</td>
<td>
<td class="o_list_monetary">
<span t-att-name="subtotal['name']" style="white-space: nowrap; font-weight: bold;" t-out="subtotal['formatted_amount']"/>
</td>
</tr>
@@ -68,7 +68,7 @@
<td class="o_td_label">
<label class="o_form_label o_tax_total_label">Rounding</label>
</td>
<td>
<td class="o_list_monetary">
<span
t-out="totals.formatted_rounding_amount"
/>
@@ -81,7 +81,7 @@
<label class="o_form_label o_tax_total_label">Total</label>
</td>
<td>
<td class="o_list_monetary">
<span
name="amount_total"
t-att-class="Object.keys(totals.groups_by_subtotal).length > 0 ? 'oe_subtotal_footer_separator' : ''"
@@ -661,6 +661,22 @@
}
}
span.o_list_monetary {
display: block
}
.o_field_monetary {
/*rtl:ignore*/
direction : ltr;
}
.o_list_monetary {
/*rtl:ignore*/
text-align: right;
/*rtl:ignore*/
direction : ltr;
}
.o_field_float, .o_field_date, .o_field_monetary {
&.oe_inline {
&, input {