Skip to Content
Menu
This question has been flagged
1 Reply
4479 Views


Hi,


On Excel there's an option to format monetary values inside the cell with symbol on the left and value on the right, like this:

Product
Color
Quantity
Price
T-Shirt
Blue
1
R$                100,00
Car
Red
1
R$           12.345,00


I'm trying something like this

<td>
<span t-field="o.currency_id.symbol" style="text-align:left;"/>
<span t-field="line.price_subtotal" style="text-align:right">
</td>

But I'm failing because span doesn't seem to accept "style" and line.price_subtotal automatically comes with currency symbol


Is there a better way of achieving this result? Or could you help me fix my code?


Thanks in advance!







Avatar
Discard
Best Answer

 try this

<td>
<span t-field="o.currency_id.symbol" style="float:left;width:50%;text-align:left;"/>
<span t-field="line.price_subtotal" style="float:right;width:50%;text-align:right;">
</td>
Avatar
Discard