Hi All,
Do you have any idea to call custom report using button on odoo 11. i have 4 custom sales report layouts and need to call that reports from buttons. do you have any solution please let me know.
Hi All,
Do you have any idea to call custom report using button on odoo 11. i have 4 custom sales report layouts and need to call that reports from buttons. do you have any solution please let me know.
On button click you can do this:
@api.multi
def view_report_button(self):
return {'type': 'ir.actions.report.xml','report_name': 'your xml report name','report_type':"qweb- pdf",'data': {dictionary of data goes here},}
Read more about custom qweb reports in odoo:
http://learnopenerp.blogspot.com/2016/09/how-to-create-custom-reports-in-odoo.html
http://learnopenerp.blogspot.com/2016/11/how-to-create-qweb-reports-in-openerp.html
Hi,
I try this and no any errors. but didn't generate the report. loading only. what is the usage of data dictionary? i don't have any idea about that.
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
Custom back button no longer working.
Diselesaikan
|
2
Okt 20
|
7780 | ||
|
1
Jun 20
|
4259 | |||
|
How to set button action on menu item action?
Diselesaikan
|
1
Des 22
|
11157 | ||
|
Quotation Report Customazation
Diselesaikan
|
2
Feb 24
|
5507 | ||
|
1
Okt 23
|
10358 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Hi, please read my medium post https://medium.com/@hendrasj/how-to-create-custom-report-on-odoo-11-dd44309eab4d