Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
236 Представления

Hi guys!!!

Please who can help

I have a field many2one but when i want to print it see what exists in this field i find "None"

Who can help me please

Аватар
Отменить

pls supply more information so one can check and give a resolution, you can post the error message you face, the code you wrote, the definition of the field with problem, and the like

Лучший ответ

In general many2one field contains foreign key ( id in other part of relation) 
if it contains none, that meany it has no entry a.k.a it is empty...

in general, if you try to print it it wil either show the other object id, or it will contain browse_object(name_of_other_object,id)

hope it helps...

Аватар
Отменить
Автор Лучший ответ


'project_id': fields.many2one( 'test_project','project_ids', 'Project Name'),

'project_ids' : fields.one2many('callim.project.service.line','project_id','Credits'),



Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
авг. 25
2891
1
июл. 25
1176
1
авг. 25
1152
0
мая 25
1629
2
апр. 25
3812