跳至內容
選單
此問題已被標幟
1 回覆
5977 瀏覽次數

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'),
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
10月 15
3799
1
3月 15
4658
2
3月 15
5504
1
2月 25
7751
5
2月 24
15913