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
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
Evaluation of python expression
Вирішено
|
1
лип. 17
|
12349 | ||
|
0
серп. 16
|
4775 | |||
|
1
лип. 16
|
6951 | |||
|
0
черв. 16
|
4760 | |||
|
0
серп. 17
|
4605 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.