I need an explanation for the get_object_reference function
Cette question a été signalée
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
0
mars 26
|
4 | ||
|
|
0
févr. 26
|
41 | ||
|
|
2
sept. 25
|
1904 | ||
|
|
1
sept. 25
|
2931 | ||
|
|
0
juil. 25
|
1845 |