We need to change search pop up window,Search should be start from the string like 'sho%'

Asked by KAKA1.2

We need to change search pop up window,Search should be start from the string like 'sho%' ,Now it is used "ilike",Which file can edit to solve this problem,I want search can work like "select name from res_partner where name ilike 'Gane%' "
Can anyone help me?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenERP Edit question
Assignee:
No assignee Edit question
Solved by:
Vinay Rana (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello,

This Facility is already implemented in trunk, But if you want this in stable then simple overwrite search method in the related class and used your query as searching criteria.

Thanks.

Revision history for this message
KAKA1.2 (satheesh) said :
#2

I want which file can be edited

Revision history for this message
Best Vinay Rana (OpenERP) (vra-openerp) said :
#3

Hello Satheesh,

You need to implement search method in related object form class for example if you want this for partner form then it needs to implement search method in res.partner name class .If you want to make separate module then create one separate module with partner inherited class and view respectively in .py and .xml file.
you can search similar code in tiny existing modules.

If you want to know about more then use the following link:
http://doc.openerp.com/developer/1_2_module_development/index.html

Hope this will help you.

Thanks.

Revision history for this message
KAKA1.2 (satheesh) said :
#4

Thanks vra (openerp), that solved my question.