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]

  

posted @ 2023-10-02 13:12  CrossPython  阅读(21)  评论(0编辑  收藏  举报