Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
298 Vizualizări

Hi!!!

Please i want to get a field from a table and i have tried this but it doesnt work. Please help me:

code:


def _get_numbers(self, cr, uid, ids, field_name, arg, context=None):

res = {}

for record in self.browse(cr, uid, ids, context=context):

res[record.id] = record.employee_id

return res

Imagine profil
Abandonează
Cel mai bun răspuns

Guess you are getting an error because you are trying to pass the browse record, instead of just ID ..

Try this way

res[record.id] = record.employee_id.id

Imagine profil
Abandonează
Autor Cel mai bun răspuns

It doesnt work. I got this

Error: AttributeError: 'NoneType' object has no attribute 'browse'

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
4
oct. 16
31293
1
sept. 15
3952
1
iun. 15
867
0
apr. 15
702
2
apr. 15
888