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
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
Evaluation of python expression
تم الحل
|
|
1
يوليو 17
|
9736 | |
|
0
أغسطس 16
|
3049 | ||
|
1
يوليو 16
|
4943 | ||
|
0
يونيو 16
|
3009 | ||
|
0
أغسطس 17
|
3114 |