Skip to Content
Menu
This question has been flagged
1 Reply
1751 Views

I want to search records by input a long string containing a sub-string that is equal to value of a field. 

For example, I have a field "trackingnum" (stock.picking model) and it is "TN1234". I input a longer string "xyzTN1234*abc" and search out related records with the same field value "TN1234" . 

Is any expert here that could help? Thank you. 


Avatar
Discard
Best Answer

Hi Laps Solution,

You can refer this:
https://odedrabhavesh.blogspot.com/2015/09/domain-in-odoo.html

This works perfect!


Hope it helps,

Regards,

Mayank Gosai

Avatar
Discard
Author

thanks. but my input string for search is a long text ("xyzTN1234*abc") and i am finding records with a shorter string ("TN1234"). the actual use is because of scanning barcode string is longer than value in the record.