Odoo Help

Welcome!

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

0

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

By
zilvinas
on 11/6/16, 7:04 PM 178 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"}'/>
0
Kuldeep
On 11/7/16, 8:15 AM

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.

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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