Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2789 Lượt xem
Ảnh đại diện
Huỷ bỏ
Tác giả

@Farsin - Try to look at name_get for "product" field under sale order line in sale order screen, you will find that it has code and name of the product together in it.

Câu trả lời hay nhất

Hello Farsin,

OpenERP uses "name_get" method to show up the values under many2one field, so you can override the "name_get" method to change the default behaviour of bringing up the "name" field from a model. You can bring up your required field from the model to show up under many2one field. 

 

Regards

Ảnh đại diện
Huỷ bỏ
Tác giả

And I also need the original name field in another place???? What i do??

@Farsin, please explain what do you mean by "original name field in another place"?

Tác giả

I want to access a combo with many2one field with both the name field and another field???