Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个自定义报告,但没有显示货币符号。这可能有什么问题:
<span t-esc="grand_total" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
您应该使用发票对象中的货币。将 t-esc 更改为 t-field。只添加 t-field="grand_total" 会看到什么?
<span t-field="grand_total" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>