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

How change what is print by the drop-down menus?

By
Selverine
on 8/16/13, 2:37 PM 840 views

Hi everbody,

I have a problem with drop-down menus :

I use a drop-down menus and the drop-down menu print the name of the table and the id of the product, but i want to print the name of the product:

What i would like:

Name logo 1 Name logo 2 Name logo 3

What the drop-down menus print:

gestion.langue, 1 gestion.langue, 2 gestion.langue, 3

Have you an idea of the error?

My code sale.py:

class gestion_langue(osv.osv) _name = "gestion.langue" _description = "Gestion Langue" _columns = { 'name_langue': fields.char('Langue Name', size=64; required=True) } _defaults = { } gestion_langue()

In def _get_default_shop

'langue_logo_site' : fields.many2one('gestion.langue', 'Langue')

sale_view.xml

<field name="" "langue_logo_site"=""/>

Thank you a lot!

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: 8/16/13, 2:37 PM
Seen: 840 times
Last updated: 3/16/15, 8:10 AM