I need an explanation for the get_object_reference function
Denna fråga har flaggats
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
Njuter du av diskussionen? Läs inte bara, delta också!
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
|
0
mars 26
|
4 | ||
|
|
0
feb. 26
|
41 | ||
|
|
2
sep. 25
|
1904 | ||
|
|
1
sep. 25
|
2931 | ||
|
|
0
juli 25
|
1844 |