odoo 使用ir.actions.report中的word模板获得生成的word
report = self.env['ir.actions.report']._get_report_from_name("lims_report.print_entrust_{}".format(type)) rendered_docx = report.render_doc_doc(self, data={})[0]
report = self.env['ir.actions.report']._get_report_from_name("lims_report.print_entrust_{}".format(type)) rendered_docx = report.render_doc_doc(self, data={})[0]