Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3838 Visualizzazioni

Hello,


In the search field availeble for the users.

Are there search operators that we can insert ( the 'or' operator) in the searh field for the 


The ideai is to modify a plain text field with our values an paste it in the search field.

I tried "product a | product b | product c " and hopeling to seel the list with product a, product b and product c, but no succes.


we always get a excel sheet with product names and need to search these one by one and then do an operation.

--> if we could modify the excel sheet with search operators for odoo then we could copy paste this and find them all.


Thank you for the help.


Avatar
Abbandona

We are having the same issue. This is a severe limitation in my opinion, it is very time consuming to hit enter after each item in the search bar. There should be a way to copy and paste 100 internal reference number for example into the search bar and auto apply the OR between each number, or have a delimiter that will accomplish the same thing. Is this on the development teams enhancement list?

Autore Risposta migliore

Dear Lars,


Thank you for your fast reply.

The sugestion works, but i was looking for a more faster way.


With this sugestion we would enter every part individualy in odoo.

The idee was to manipulate my excel list to maken 1 long query string to copy-paste in the odoo search field.


I do not know if there are or operators accepted in this search field?



example list

/ :

SFB14
AF-AL
ST02.
ST02.
ST02.
ST02.
SCM10
SCM10
SEAVW
60447
TELTG
PF337
SEACA
SEAGV
SEAGV
SEAGV
SEAGV
SEALA
SEALA
SEALC
SEALC



if you enter values in the search field one by one ( with an enter between) they conatenate wit an 'or' (='of' in dutch) in between.



I was looking if we can maken 1 long string wit "10m" OR "Aarding" OR "Buis" ?

Maybe it does not support this type of query's ?


Thank you for the reply.



Avatar
Abbandona

below the code corresponding to a series of values (here product internal ref) passed to the filter (using studio)

["&",["type","=","product"],"|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|",["default_code","ilike","HL00123854"],["default_code","ilike","MUSAM90240"],["default_code","ilike","AL25923 "],["default_code","ilike","MUSAM1011340"],["default_code","ilike","HLE90003870"],["default_code","ilike","MUSAM1008975"],["default_code","ilike","HL00242082"],["default_code","ilike","MUSAM994400"],["default_code","ilike","HL00291022"],["default_code","ilike","HN66"],["default_code","ilike","SCHSF6716"],["default_code","ilike","HL00119643"],["default_code","ilike","29083"],["default_code","ilike","EP8206"],["default_code","ilike","DHP 1002337-400"],["default_code","ilike","MUSIMP3833A"],["default_code","ilike","BH100053 "]]

Risposta migliore

If I understand correctly you want to search product list with Or operator.   Use Custom filter, find the field you want to search, use the button +Add condition and you get OR. If want to search with AND. You create two filter for search.


Avatar
Abbandona

You understand the search he's trying to achieve, but we're looking for shorter steps.

I think the most concise way to put it is that, we're looking for some way to search "matches this list" of terms, where the list is long enough that it's very tedious to type "Term1 <ENTER> Term2 <ENTER> ... TermN <ENTER>", to get a search [Product Term1 or Term2 or ... or TermN].

Post correlati Risposte Visualizzazioni Attività
1
lug 25
303
1
feb 25
1105
0
set 23
2106
1
ago 22
12595
7
ott 20
10179