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
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
Evaluation of python expression
แก้ไขแล้ว
|
1
ก.ค. 17
|
12344 | ||
|
0
ส.ค. 16
|
4768 | |||
|
1
ก.ค. 16
|
6948 | |||
|
0
มิ.ย. 16
|
4753 | |||
|
0
ส.ค. 17
|
4582 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.