Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3196 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sty 21
5455
5
wrz 24
46126
1
sie 23
2142
0
mar 23
2532
1
wrz 24
7597