let me share you my code. the report action is generated and i see the report name in under the print section. But when i click to print the report i face the issue i browser.
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
and i my log file i face this error type
TypeError: get_report_xlsx() missing 4 required positional arguments: 'model', 'options', 'output_format', and 'report_name' - - -
let me share you code
from odoo import models
class PartnerXlsx(models.AbstractModel):
_name = 'report.account.bill_report'
_inherit = 'report.report_xlsx.abstract'
def generate_xlsx_report(self, workbook, data, partners):
for obj in partners:
report_name = obj.name
# One sheet by partner
sheet = workbook.add_worksheet(report_name[:31])
bold = workbook.add_format({'bold': True})
sheet.write(0, 0, obj.name, bold)
xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="vendor_bill_report" model="ir.actions.report">
<field name="name">Bill Invoices_Exelfield>
<field name="model">account.movefield>
<field name="report_type">xlsxfield>
<field name="report_name">account.bill_reportfield>
<field name="report_file">account.bill_reportfield>
<field name="binding_model_id" ref="model_account_move"/>
<field name="binding_type">reportfield>
record>
odoo>