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

In OpenERP 7

I have a client that needs to see the supplier name (Just one if there are multiple suppliers) in the product listing. I've tried using related fields but can't seem to get the syntax right.

Have tried:

'x_suppliername': fields.related('seller_ids','name',type='many2one', relation='product.supplierinfo','string='Supplier'),

Can anyone help me on this?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
'x_suppliername': fields.related('seller_ids', string='Supplier'),
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 15
3669
1
thg 3 15
4523
2
thg 3 15
5386
1
thg 2 25
7648
5
thg 2 24
15733