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

combine search terms

By
Martin Schubert
on 3/15/15, 6:35 AM 479 views

If you want to add a product to an invoice, e.g.: [A2323] iPad Retina Display (16 GB, White, 2.4 GHz)

But, you only know the internal number begins with "A23" and it´s a "Display".

How do you combine this 2 search fragments without using the "search more" overlay to write an invoice quickly?

Thank you for your help.

2

Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--
4136
| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 3/15/15, 6:50 AM

Hi,

you can overrride seach function, in it, split your string using a character (example: '+' : A23+Display) and create a domain using operator 'like' or 'ilike' with different values of split, call search function and return ids list.

Bye

0
Martin Schubert
On 4/17/15, 4:09 AM

Thanks.

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: 3/15/15, 6:35 AM
Seen: 479 times
Last updated: 11/15/15, 7:16 AM