Hi
I have added "seller_id" to the "product_product_tree_view" and "product_search_form_view" so that users can see and search products based on the main supplier. The "Main Supplier" column works as expected but the search field does not work.
This must have something to do with "_calc_seller" function
Code:
seller_id': fields.function(_calc_seller, method=True, type='many2one', relation="res.partner", string='Main Supplier', help="Main Supplier who has highest priority in Supplier List.", multi="seller_id"),
How should I be doing this for the search filed to work.
Thanks in advance
O