I need an explanation for the get_object_reference function
لقد تم الإبلاغ عن هذا السؤال
3
الردود
18879
أدوات العرض
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
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
0
أبريل 26
|
13 | ||
|
|
0
مارس 26
|
4 | ||
|
|
0
فبراير 26
|
41 | ||
|
|
2
سبتمبر 25
|
1910 | ||
|
|
1
سبتمبر 25
|
2935 |