I need an explanation for the get_object_reference function
La domanda è stata contrassegnata
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
Hello Maniganda, Nazarii,
What is the difference between get_object and get_object_reference?
get_object returns a browsable record for the given module name and xml_id.
get_object_reference the database ID only
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
0
mag 26
|
2 | ||
|
|
0
apr 26
|
13 | ||
|
|
0
mar 26
|
4 | ||
|
|
0
feb 26
|
41 | ||
|
|
2
set 25
|
1933 |