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

I have to get the value from a tree view with code

For example I have 3 columns (Rule, ID, Total) and I have to get the value of total where the ID is "Basic"
How can I do that?

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

Please use search method in odoo orm: https://www.youtube.com/watch?v=8V-uOG8KkKA

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

Hello,

You can access that value from the browsable object of that model and if you want to get total value in same model then you can get that value by self.field_name

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يناير 21
4823
5
سبتمبر 24
45220
1
أغسطس 23
1669
0
مارس 23
1979
1
سبتمبر 24
6942