Skip to Content
Menu
This question has been flagged
1 Atsakyti
5974 Rodiniai

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?

Portretas
Atmesti
Best Answer
'x_suppliername': fields.related('seller_ids', string='Supplier'),
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
spal. 15
3798
1
kov. 15
4657
2
kov. 15
5502
1
vas. 25
7750
5
vas. 24
15911