I have created Automated Action on invoice object.
On Creation & Update
Server Action :
sale_order = env['sale.order'].search([('invoice_ids', '=', object.id)])
sale_order is display All sale order.
Any one can help to search on many2many field.
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: 9/1/16, 8:35 AM|
|Seen: 126 times|
|Last updated: 9/1/16, 8:36 AM|