Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5814 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź
'x_suppliername': fields.related('seller_ids', string='Supplier'),
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
paź 15
3548
1
mar 15
4425
2
mar 15
5272
1
lut 25
7568
5
lut 24
15550