Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
2750 Visninger

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?

Avatar
Kassér
Bedste svar

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

Avatar
Kassér
Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
jan. 21
4817
5
sep. 24
45211
1
aug. 23
1666
0
mar. 23
1969
1
sep. 24
6937