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

hi,


Maybe someone can explain me that cousing warning in log.

log:

2016-11-06 23:48:00,458 1601 WARNING odoo10 odoo.addons.base.ir.ir_qweb.ir_qweb: Use new syntax for '<span t-esc="p['subtotal']" t-tag="span"/>                    
' monetary widget t-options (python dict instead of deprecated JSON syntax).


code what couses:


<span t-esc="p['subtotal']" t-options='{"widget": "monetary", "display_currency": "doc.currency_id"}'/>
Avatar
Discard
Best Answer

Hi zilvinas,

You just need to remove quote from doc.currency_id means like below

original:

<span t-esc="p['subtotal']" t-options='{"widget": "monetary", "display_currency": "doc.currency_id"}'/>

replace with:

<span t-esc="p['subtotal']" t-options='{"widget": "monetary", "display_currency": doc.currency_id}'/>


I hope it will help you.

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
18020
1
Sep 23
1206
3
May 23
4095
7
Apr 23
47097
1
Dec 22
6437