qweb odoo float decimal format

<span t-esc="sum(docs.mapped('amount'))" t-options='{"widget": "float", "precision": 2}'/>

or separate the currency symbol and widget precision.

<span t-esc="res_company.currency_id.symbol"/>

<span t-esc="i" t-options="{'widget': 'float', 'precision': 2}"/>

Article Details

Article ID:
9
Category:
Rating :

Related articles