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

Hello, I am trying to get the ID from an object after I use the orm browse() method. When I assign my variable to the id of the returned record all i get it this

_id = record_object.order_partner_id
#returns this:
browse_record(sale.order.line, 106)

Does anyone know how I can get just the 106 from the object? Thank you

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

Hi,

_id = record_object.order_partner_id.id will give you id of the specific record.

Hope this helps.

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

Yep, that did it. Thank you

Related Posts Ответы Просмотры Активность
2
мар. 15
4288
1
мар. 15
7376
1
июн. 16
7235
1
мар. 15
14837
1
июн. 17
6570