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
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
1
июл. 17
|
10668 | |||
|
0
авг. 16
|
3659 | |||
|
1
июл. 16
|
5720 | |||
|
0
июн. 16
|
3696 | |||
|
0
авг. 17
|
3596 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.