Calling objects in widgets

If you see in your console warning message such “Use new syntax for ‘<span t-tag=”span”/>” you need to remove the quotes from the objects in your widgets.

For example, if you want to display amount_total field in your new report with monetary widget the value for the display_currency parametar should be o.currency_id instead of “o.currency_id”

<span t-field="o.amount_total" t-options='{"widget": "monetary", "display_currency": o.currency_id'/>

Leave a Reply

Your email address will not be published. Required fields are marked *