Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Modify Product Search in openERP 7.0

By
Kalaivanan
on 5/22/13, 8:36 AM 1,026 views

Hi All,

Hope everyone is good. I need to add a new field in product search such as description or color. So i have modified name_search function as like below in product.py

if not ids: ids = self.search(cr, user, [('color','=',name)] + args, limit=limit, context=context)

after the following line:

if not ids: ids = self.search(cr, user, [('ean13','=',name)]+ args, limit=limit, context=context)

But its not working. Pls help on this.

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 5/22/13, 8:36 AM
Seen: 1026 times
Last updated: 3/16/15, 8:10 AM