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
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
Evaluation of python expression
Diselesaikan
|
1
Jul 17
|
12285 | ||
|
0
Agu 16
|
4684 | |||
|
1
Jul 16
|
6877 | |||
|
0
Jun 16
|
4678 | |||
|
0
Agu 17
|
4481 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.