Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2941 Visualizzazioni

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
gen 21
5079
5
set 24
45664
1
ago 23
1908
0
mar 23
2281
1
set 24
7299