Odoo Help


search sales order by customer's phone number & email

shashank verma
on 6/14/13, 5:54 AM 2,457 views


i want to search sales order records by customer's phone number & emial id

how can i achieve this??

skype id



Sudhir Arya (SA)

--Sudhir Arya (SA)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow




Sudhir Arya (SA)
On 6/14/13, 6:14 AM

There is no field of Customer Phone in Sale Order. So you cannot search for that.

You can create related field of Customer Phone.

'customer_phone': fields.related('partner_id', 'phone', type='char'),

Now add this field in search view of Sale Order.

thanks sudhir

bythe way i tried an alternate way to achieve this

i put this code in serach view

<field name="name" string="phone number" filter_domain="[('partner_order_id.phone','ilike',self)]"/>

<field name="name" string="email" filter_domain="[('partner_order_id.email','ilike',self)]"/>

its working f9

but your solution much easier and compact once again thanks

are you on skype?? can i have ur skype id?

shashank verma
on 6/14/13, 7:20 AM

Sorry I don't have account of skkype. You can contact me on linkedin.

Sudhir Arya (SA)
on 6/14/13, 11:22 AM

Francesco OpenCode

--Francesco OpenCode--
| 5 7 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 6/14/13, 8:53 AM

Insert this line in sale order search:

<field name="name" string="email" filter_domain="['|', ('partner_order_id.email','ilike',self), ('partner_order_id.phone','ilike',self)]"/>

thanks for response but i have done the same thing ;-)

shashank verma
on 6/14/13, 10:01 AM

Then my answer is correct for you. I don't know what you do to the other side of the world! :D

Francesco OpenCode
on 6/14/13, 11:16 AM

lolzzzz ;-)

shashank verma
on 6/15/13, 6:17 AM

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.


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

0 follower(s)


Asked: 6/14/13, 5:54 AM
Seen: 2457 times
Last updated: 3/16/15, 8:10 AM