I need an explanation for the get_object_reference function
Bu soru işaretlendi
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
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
0
Mar 26
|
4 | ||
|
|
0
Şub 26
|
41 | ||
|
|
2
Eyl 25
|
1904 | ||
|
|
1
Eyl 25
|
2931 | ||
|
|
0
Tem 25
|
1844 |