Odoo Help


Dynamic t-call in Qweb template not working in v10

on 10/20/16, 9:29 AM 1,891 views


During Checking Qweb change for v10 come across below issue.

<t t-set="r_name" t-value="dynamic value from field"/>

If i check with t-if tag it work

<t t-if="r_name == condition "/>

But if I want to call the dynamic template which set in variable r_name than it will give below error.

<t t-call="{ r_name }"/>

Note :- Above code work fine in v9. After check in detail come to know that in v9 before t-call it will parse the variable value and than call but in v10 it just pass as it is. It is issue in v10 Qweb?

Sebastian Koch
On 12/10/16, 3:35 PM

Is there any workaround for this issue? We really need dynamic calls in templates in our module.

(sorry for posting this as an answer, don't have enough karma to comment)


Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 10/20/16, 3:31 PM

In Odoo 10 there is no evaluation of the t-call template value since the qweb engine for rendering the templates in this new version were rewrited and now are compiled to speed up and the current implementation is using the t-call value as string

what all are the changes in odoo 10 qweb which affecting odoo 9 qweb code

on 11/3/16, 10:36 AM

You need to read the release notes to know all the changes, theres a mail in the odoo community with all the release notes that it's used for odoo 10 release

Axel Mendoza
on 11/21/16, 1:41 PM

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: 10/20/16, 9:29 AM
Seen: 1891 times
Last updated: 12/10/16, 3:35 PM