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
its work thanks
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
Evaluation of python expression
Rozwiązane
|
|
1
lip 17
|
9647 | |
|
0
sie 16
|
2999 | ||
|
1
lip 16
|
4895 | ||
|
0
cze 16
|
2950 | ||
|
0
sie 17
|
3064 |