Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
3935 Prikazi

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
Opusti
Best Answer

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
Opusti
Avtor Best Answer

its work thanks 

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jul. 17
9795
0
avg. 16
3087
1
jul. 16
4984
0
jun. 16
3057
0
avg. 17
3151