How would you go about changing the website search bar to include custom information and make it posible to search on custom information?
Welcome!
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
1
Reply
39
Views
Soo i figured it out by myself
inherit product.template and run the function and then just append to search_fields
@api.model
def_search_get_detail(self, website, order, options):
search_details = super(ProductTemplate, self)._search_get_detail(website, order, options)search_details['search_fields'].append('your products')
Your Answer
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up