Reputation: 179
I'm working on a QWeb report in Odoo 17, and I've encountered an issue with the currency symbol display.
When I use the following template in my QWeb report:
<odoo>
<data>
<template id="report_voucher">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<!-- Report content here -->
<t t-esc="line.debit" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
</t>
</t>
</template>
</data>
</odoo>
The currency symbol is displayed incorrectly, e.g., 500.00 ₱ instead of 500.00 ₱.
However, when I use this template:
<t t-call="web.basic_layout">
The currency symbol is displayed correctly.
Could anyone explain why this is happening and how I can fix the currency symbol display when using web.html_container?
Thanks in advance!
Upvotes: 1
Views: 379