Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
5321 Näkymät

I have a module 'x', the module is having fields in the db, 'id', 'member_id'.

I want to get the related 'member_id' data to my module 'y', as

temp = fields.many2one('x', "Member ID", required=True)

but what I get with this code is the value of 'id', not 'member_id', how to get the value of 'member_id'?

Avatar
Hylkää

By judging your question I think you mean you've made a model 'x' in place of a module? I'd advise you to use descriptive model names though, since this is really a bad practice..

Tekijä

x and y are just names

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
tammik. 22
3446
0
maalisk. 15
4600
1
marrask. 24
2126
1
elok. 23
2926
1
kesäk. 18
3884