Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3898 Zobrazení

Hi everyone!

I want to create a get method in order to get all the account voucher for example 

I don't know the syntaxe. Please help

Thanks in advance.

Avatar
Zrušit
Nejlepší odpověď

HI,

Try like this.

get_rec = self.env['model_name'].search([])
#here it returns all records in the model
for rec in get_rec:
     print rec
     #here you can access each records using rec
Avatar
Zrušit
Autor Nejlepší odpověď

its work thanks 

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvc 17
9751
0
srp 16
3056
1
čvc 16
4952
0
čvn 16
3022
0
srp 17
3132