跳至内容
菜单
此问题已终结
1 回复
5852 查看

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
3639
1
3月 15
4500
2
3月 15
5367
1
2月 25
7612
5
2月 24
15706