Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
3904 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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
Imagine profil
Abandonează
Autor Cel mai bun răspuns

its work thanks 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iul. 17
9763
0
aug. 16
3068
1
iul. 16
4964
0
iun. 16
3032
0
aug. 17
3141