Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5811 Vistas

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
Descartar
Mejor respuesta
'x_suppliername': fields.related('seller_ids', string='Supplier'),
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
oct 15
3540
1
mar 15
4424
2
mar 15
5267
1
feb 25
7563
5
feb 24
15548