添加功能

This commit is contained in:
zhou
2025-04-21 20:30:33 +08:00
parent 2c20726c00
commit cad8576abe
6 changed files with 87 additions and 2 deletions
@@ -29,8 +29,7 @@ from odoo.tools import html_escape
class XLSXReportController(http.Controller):
"""This is used to call the xlsx report function"""
@http.route('/xlsx_reports', type='http', auth='user',
methods=['POST'], csrf=False)
@http.route('/xlsx_reports', type='http', auth='user', methods=['POST'], csrf=False)
def get_report_xlsx(self, model, options, output_format, report_name, **kw):
"""this is used to call the function"""
uid = request.session.uid