Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6035 Zobrazení

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
Zrušit
Nejlepší odpověď
'x_suppliername': fields.related('seller_ids', string='Supplier'),
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
říj 15
3925
1
bře 15
4781
2
bře 15
5611
1
úno 25
7817
5
úno 24
16029