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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
Evaluation of python expression
Risolto
|
1
lug 17
|
10949 | ||
|
0
ago 16
|
3786 | |||
|
1
lug 16
|
5937 | |||
|
0
giu 16
|
3841 | |||
|
0
ago 17
|
3763 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.