You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
574 B
18 lines
574 B
# Copyright 2017 Creu Blanca
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import models
|
|
|
|
|
|
class PartnerXlsx(models.AbstractModel):
|
|
_name = "report.report_xlsx.partner_xlsx"
|
|
_inherit = "report.report_xlsx.abstract"
|
|
_description = "Partner XLSX Report"
|
|
|
|
def generate_xlsx_report(self, workbook, data, partners):
|
|
sheet = workbook.add_worksheet("Report")
|
|
i = 0
|
|
for obj in partners:
|
|
bold = workbook.add_format({"bold": True})
|
|
sheet.write(i, 0, obj.name, bold)
|
|
i += 1
|