Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
2753 Ansichten

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
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Jan. 21
4819
5
Sept. 24
45211
1
Aug. 23
1666
0
März 23
1971
1
Sept. 24
6940