Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5985 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด
'x_suppliername': fields.related('seller_ids', string='Supplier'),
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 15
3830
1
มี.ค. 15
4706
2
มี.ค. 15
5514
1
ก.พ. 25
7752
Search products by supplier code แก้ไขแล้ว
5
ก.พ. 24
15926