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.
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.
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
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
Evaluation of python expression
Ratkaistu
|
1
heinäk. 17
|
12382 | ||
|
0
elok. 16
|
4784 | |||
|
1
heinäk. 16
|
6971 | |||
|
0
kesäk. 16
|
4782 | |||
|
0
elok. 17
|
4647 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.