Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4229 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 4 21
28657
1
thg 7 20
2696
1
thg 6 16
3990
0
thg 6 16
4165
0
thg 2 16
6020