Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2778 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 21
4843
5
ก.ย. 24
45239
1
ส.ค. 23
1698
0
มี.ค. 23
2023
1
ก.ย. 24
6980