跳至内容
菜单
此问题已终结
1 回复
7567 查看

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

相关帖文 回复 查看 活动
2
3月 15
4319
1
3月 15
7416
1
6月 16
7271
1
3月 15
14869
1
6月 17
6643