Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1461 Lượt xem

here I want to create an API endpoint that triggers and my reports will show and also download option be there in my central dashboard in v14

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

what should i call in the controller i generate report by odoo report templete
in the controller what should i call report template id ?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

To create an API endpoint in Odoo that triggers the generation of reports and provides options for viewing and downloading them in your central dashboard, you can follow these general steps:

  1. Define the API Endpoint: Create a controller in your Odoo module that defines the API endpoint. This controller will handle the incoming requests and trigger the report generation process.
  2. Generate Reports: Implement the logic to generate the reports based on the incoming requests. This logic will depend on the specific reports you want to generate and the data sources involved.
  3. Return Report Data: Return the generated report data in a format that can be displayed in your central dashboard. This could be in the form of HTML for displaying the report directly in the dashboard, or a URL or file path for downloading the report.


Ảnh đại diện
Huỷ bỏ