Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
2791 Vues

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
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
janv. 21
4853
5
sept. 24
45242
1
août 23
1707
0
mars 23
2028
1
sept. 24
6984