How to get the URL of the PDF report (qweb report), for example file:///C:/Users/h/Downloads/test.pdf
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
4674
화면
Hello yasmina,
You can use below code for get url of the pdf report
base_url = self.env['ir.config_parameter'].get_param('web.base.url')
local_url = self.env['ir.attachment'].browse(new_created_attachment_pdf_report).mapped('local_url')
if base_url and local_url:
URL = base_url + '/'+ local_url
URL is final downloadable url for pdf type attachment created
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
2
7월 23
|
5622 | ||
|
1
6월 23
|
3836 | ||
|
1
11월 22
|
3402 | ||
|
1
10월 21
|
11756 | ||
|
0
10월 21
|
1746 |