تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
7526 أدوات العرض

Hello, I am trying to get the ID from an object after I use the orm browse() method. When I assign my variable to the id of the returned record all i get it this

_id = record_object.order_partner_id
#returns this:
browse_record(sale.order.line, 106)

Does anyone know how I can get just the 106 from the object? Thank you

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

_id = record_object.order_partner_id.id will give you id of the specific record.

Hope this helps.

الصورة الرمزية
إهمال
الكاتب

Yep, that did it. Thank you

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 15
4286
1
مارس 15
7373
1
يونيو 16
7232
1
مارس 15
14836
1
يونيو 17
6568