Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5967 Vues

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
Ignorer
Meilleure réponse
'x_suppliername': fields.related('seller_ids', string='Supplier'),
Avatar
Ignorer
Publications associées Réponses Vues Activité
0
oct. 15
3796
1
mars 15
4653
2
mars 15
5499
1
févr. 25
7744
5
févr. 24
15894