summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/coretax_fatur.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/indoteknik_custom/models/coretax_fatur.py b/indoteknik_custom/models/coretax_fatur.py
index 1c3af6a4..a0820fee 100644
--- a/indoteknik_custom/models/coretax_fatur.py
+++ b/indoteknik_custom/models/coretax_fatur.py
@@ -85,9 +85,10 @@ class CoretaxFaktur(models.Model):
})
# Kembalikan URL untuk download dengan header 'Content-Disposition'
- return {
+ response = {
'type': 'ir.actions.act_url',
- 'url': '/web/content/{}'.format(attachment.id),
+ 'url': '/web/content/{}?download=true'.format(attachment.id),
'target': 'self',
- 'params': {'download': True}, # Menambahkan parameter untuk memastikan file didownload
}
+
+ return response