Odoo Help


How to use qweb directives in form or tree view (Odoo)

Adnier Rosello
on 10/5/15, 4:34 PM 2,025 views

how I can be used (if possible) the Qweb directives (t-if, t-foreach, etc.) such as are applied in the reports or kanban views with the <templates> tag, but in a form or tree view.


Axel Mendoza
On 10/5/15, 5:57 PM

There is no way to do it in the simply form or tree views, to do it you need to define a new widget with their respective template and you could associate to a client action tag, it's more tricky and need more work than usual. It means that you will end doing everything in the js, get data, bind events, I mean everything

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

2 follower(s)


Asked: 10/5/15, 4:34 PM
Seen: 2025 times
Last updated: 10/6/15, 7:45 AM