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
6006 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
3877
1
mar 15
4741
2
mar 15
5565
1
lut 25
7783
5
lut 24
15981