Do you mean by a dropdown a many2one field in an Odoo/openERP view ?
create a calculated field in the res.partner table that holds the count of the sales order created for this customer, name it 'sale_count'. Make this field searchable.
in the many2one field that shows the customers add a domain filter as
domain = [('sale_count','>',0)]
I hope this works
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
|Asked: 7/31/15, 11:41 PM|
|Seen: 304 times|
|Last updated: 8/17/15, 5:37 AM|