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
6169 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
4105
1
mar 15
4916
2
mar 15
5762
1
lut 25
7968
5
lut 24
16203