Hi is there any way to access report url widthout authentication needed?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi is there any way to access report url widthout authentication needed?
Thanks
Yes, it is possible to append token on the PDF path. For example:
invoice = self.account_move
invoice._portal_ensure_token()
base_url = self.env["ir.config_parameter"].sudo().get_param("web.base.url")
pdf_url = (
f"{base_url}"
f"/report/pdf/account.report_invoice/{invoice.id}"
f"?access_token={invoice.access_token}"
)
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ý
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.