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

Dynamic t-call in Qweb template not working in v10

By
Kuldeep
on 10/20/16, 9:29 AM 361 views

Hello,

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?



1

Axel Mendoza

--Axel Mendoza--
10205
| 7 7 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 an 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

Janarthanan
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

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: 10/20/16, 9:29 AM
Seen: 361 times
Last updated: 10/22/16, 3:51 AM