You have to do a workaround to achieve it....
product_id is present in Order lines, so if you want to make it available for Searching in Order object (parent).. you can achieve it using functional field and its search function...
In Order : add a functional field, and in _fnct_search, you write a logic to search through lines and fetch the parent ids...
We can add filter domains.
<record id="search_view" model="ir.ui.view">
<field name="arch" type="xml">
<!--Add this filter domain -->
<field name="order_line" filter_domain="[('order_line.product_id.name','ilike',self)]" string="Products"/>
<group expand="0" string="Group By...">
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: 10/5/14, 1:06 PM|
|Seen: 435 times|
|Last updated: 3/16/15, 8:10 AM|