It is currently Mon May 21, 2012 7:08 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: seller_id in search field
PostPosted: Tue Jun 28, 2011 11:12 am 
Offline

Joined: Tue Mar 09, 2010 4:08 pm
Posts: 117
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


Top
 Profile  
 
 Post subject: Re: seller_id in search field
PostPosted: Wed Jun 29, 2011 10:00 am 
Offline

Joined: Wed Jan 27, 2010 6:21 pm
Posts: 797
Location: Auckland, NZ
At a geuss, and if you check traceback logs for server it will probably confirm that unstored function fields are no good for searching (they are definitely no good for sorting)

_________________
Graeme


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP