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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 10 20
|
5806 | ||
|
1
thg 6 20
|
2513 | ||
|
1
thg 12 22
|
8819 | ||
Quotation Report Customazation
Đã xử lý
|
|
2
thg 2 24
|
3603 | |
|
1
thg 10 23
|
5888 |
Hi, please read my medium post https://medium.com/@hendrasj/how-to-create-custom-report-on-odoo-11-dd44309eab4d