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
5932 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
3763
1
mar 15
4583
2
mar 15
5449
1
lut 25
7709
5
lut 24
15857