Hi, I am trying to add an attachment
pdf = self.env.ref('india_gst.report_gst_invoice_menu').render_qweb_pdf(picking.out_invoice_ids.id)[0]
            vals = {
                 'res_model': 'account.invoice',
                 'res_id': picking.out_invoice_ids.id,
                 'datas': base64.b64encode(pdf),
                 'name': 'recent_bill.pdf',
                 'mimetype': 'application/pdf',
            }
            atac_id = self.env['ir.attachment'].create(vals)
But when I try to download the attachment it downloads some binary file.
But when I try to download the attachment it downloads some binary file.
