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
5812 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
3545
1
bře 15
4424
2
bře 15
5269
1
úno 25
7565
5
úno 24
15549