Skip to Content
Menu
This question has been flagged
1 Reply
6147 Views

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?

Avatar
Discard
Best Answer
'x_suppliername': fields.related('seller_ids', string='Supplier'),
Avatar
Discard
Related Posts Replies Views Activity
0
Oct 15
4063
1
Mar 15
4894
2
Mar 15
5739
1
Feb 25
7942
5
Feb 24
16164