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
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
Evaluation of python expression
Rezolvat
|
1
iul. 17
|
12376 | ||
|
0
aug. 16
|
4782 | |||
|
1
iul. 16
|
6966 | |||
|
0
iun. 16
|
4773 | |||
|
0
aug. 17
|
4635 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.