I need an explanation for the get_object_reference function
To pytanie dostało ostrzeżenie
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
0
maj 26
|
2 | ||
|
|
0
kwi 26
|
13 | ||
|
|
0
mar 26
|
4 | ||
|
|
0
lut 26
|
41 | ||
|
|
2
wrz 25
|
1930 |