Odoo Help


This community 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.


what does get_object_reference function do?

on 6/26/13, 10:07 AM 4,793 views

I need an explanation for the get_object_reference function

On 6/26/13, 6:22 PM

From the method docstring:

Returns the id of the ir.model.data record corresponding to a given module and xml_id (cached) or raise a ValueError if not found

In other words, it will get id of record, imported to database from xml.

thank you for your clear explanation

on 6/27/13, 1:47 AM
On 5/28/15, 11:58 PM

Hello Maniganda, Nazarii, 

What is the difference between get_object and get_object_reference?

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 6/26/13, 10:07 AM
Seen: 4793 times
Last updated: 5/28/15, 11:58 PM