Odoo Help


How can I load a search field in a QWeb template??

on 2/11/15, 7:27 AM 1,171 views

I tried writing this:

<t t-call="SearchView"/>

This object is in the web base module: /addons/web/static/src/xml/base.xml in the line 1455

The field is loaded but I can't write in it. 

Am I missing anything? Is possible to do this?

I want to do this because I want to get the value in a JavaScript widget

I'm using OpenERP v7

Thanks in advance

On 2/11/15, 8:53 AM

hi.you can try this code:

<t t-call="website_sale.search"><t t-set="search_class">test</t></t>

It didn't worked, I get this error: Runtime Error: Error: QWeb2: Template 'website_sale.search' not found But thanks anyway! By the way, I'm using OpenERP v7

on 2/11/15, 9:18 AM


on 2/11/15, 9:27 AM

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: 2/11/15, 7:27 AM
Seen: 1171 times
Last updated: 5/11/16, 2:14 PM