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.

1

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

By
chesucr
on 2/11/15, 7:27 AM 773 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

0

Vasanth

--Vasanth--
3458
| 5 3 8
Pondicherry, India
--Vasanth--
Vasanth
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

chesucr
on 2/11/15, 9:18 AM

ok

Vasanth
on 2/11/15, 9:27 AM

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

2 follower(s)

Stats

Asked: 2/11/15, 7:27 AM
Seen: 773 times
Last updated: 5/11/16, 2:14 PM