Odoo Help

0

Search in subtree

By
Franco A.
on 5/20/14, 7:05 PM 787 views

Hi,

this is my first post on this forum, so thanks in advance to everyone.

I'm building a custom module that shows a form with a sub-list for a one2many field, similar to the invoice lines shown in the invoice edit form.

As this list could become pretty big (at least two pages) I would like to add a search field so that the user can narrow the list in the same way it can be done in 'full' tree views, by searching for example by Name field.

Is this possible?

Thanks,

Frank

0

Prakash

--Prakash--
Prakash
3173
| 5 4 7
Bikaner, India
--Prakash--

OpenERP Devloper at SunARC Technology

Prakash
On 5/21/14, 3:20 AM

Based on your requirement to add subtree field in main form using related fields and add the related fields in search view.

 Refer the Link In the example given sale order line Product details added in the sale order search box using related field.

0
Franco A.
On 5/21/14, 4:09 AM

Hi,

Thanks a lot for the answer. The solution you linked is very useful and I implemented it as is (modules are very similar in structure), but I would like to search inside the form view instead of the main tree view.

Suppose that you are looking at the form and the 'line_ids' tree contains a lot of entries. Instead of looking at all the entries to find the one I want I would like to have a 'search' field (a simple text field is sufficient) so that when I type something inside this field the tree becomes 'filtered' showing only lines that are matching my search criteria.

Thanks,

Frank

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 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.

Register

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)

Stats

Asked: 5/20/14, 7:05 PM
Seen: 787 times
Last updated: 3/16/15, 8:10 AM