Skip to Content
मेन्यू
This question has been flagged
2 Replies
304 Views

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Author Best Answer

It doesnt work. I got this

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

Avatar
Discard
Related Posts Replies Views Activity
4
अक्तू॰ 16
31306
1
सित॰ 15
3955
1
जून 15
875
0
अप्रैल 15
705
2
अप्रैल 15
894