Odoo Help


How to get the id from a browse_record?

on 3/17/14, 7:55 PM 1,261 views

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



| 5 2 8
Ahmadabad, India
On 3/18/14, 1:34 AM


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

Hope this helps.

Yep, that did it. Thank you

on 3/18/14, 12:28 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 3/17/14, 7:55 PM
Seen: 1261 times
Last updated: 3/16/15, 8:10 AM