Odoo Help


Use new syntax for '<span t-tag="span"/>

on 11/6/16, 7:04 PM 322 views


Maybe someone can explain me that cousing warning in 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"}'/>
On 11/7/16, 8:15 AM

Hi zilvinas,

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


<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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/6/16, 7:04 PM
Seen: 322 times
Last updated: 11/8/16, 10:32 AM