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

"Add Item" should be sorted by product description first not "Internal Reference", how do I change this?

By
Powrrr Play
on 12/11/13, 3:56 PM 932 views

When creating a new Sales Order, I am then clicking on "Add an Item". The product list default is sorted by "Internal Reference".

When I click on "Add an Item" I must have my product list sorted by Name (Description). People think of a name and description and can not think of product codes/internal reference. Same thing with "Create: Order Lines". I need to see this list sorted by Name (description) first, then product/internal reference.

How do I change this setting in openerp to make this my system wide default view when creating sales orders?

0
aharoen
On 12/12/13, 3:09 AM

Sorting order defined in model definition in python file. For porduct.product model the definition are (look at product addons module on product.py

  ...
    _order = 'default_code,name_template'
  ...

To change the definition, you must create new module and create new product.py file and inherit the

class product_product

class product_product(osv.osv):
          _inherit = 'product.product'
          _order = 'name_template'

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: 12/11/13, 3:56 PM
Seen: 932 times
Last updated: 3/16/15, 8:10 AM