|
@@ -57,6 +57,7 @@ class IrAttachment(models.Model):
|
|
|
'company_id': self.env.company.id
|
|
'company_id': self.env.company.id
|
|
|
}
|
|
}
|
|
|
attachment = self.env['ir.attachment'].sudo().create(data)
|
|
attachment = self.env['ir.attachment'].sudo().create(data)
|
|
|
|
|
+ self.unlink()
|
|
|
return self.download_zip(file_name_zip, attachment.id)
|
|
return self.download_zip(file_name_zip, attachment.id)
|
|
|
|
|
|
|
|
def download_zip(self, filename, id_file):
|
|
def download_zip(self, filename, id_file):
|