Index: /main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/fileviewlets.py
===================================================================
--- /main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/fileviewlets.py	(revision 12459)
+++ /main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/fileviewlets.py	(revision 12460)
@@ -49,4 +49,8 @@
     tab_redirect = '#tab2'
 
+    @property
+    def download_filename(self):
+        return u"%s.jpg" % self.context.document_id[:9]
+
 
 class JPGScanEditUpload(JPGScanManageUpload):
@@ -68,4 +72,8 @@
     download_name = u'scan.jpg'
 
+    @property
+    def download_filename(self):
+        return u"%s.jpg" % self.context.document_id[:9]
+
 
 class JPGScanImage(Image):
@@ -76,4 +84,8 @@
     grok.require('waeup.viewCustomer')
     download_name = u'scan.jpg'
+
+    @property
+    def download_filename(self):
+        return u"%s.jpg" % self.context.document_id[:9]
 
 class JPGScanPDFSlip(JPGScanDisplay):
@@ -92,4 +104,8 @@
     download_name = u'scan.pdf'
     tab_redirect = '#tab2'
+
+    @property
+    def download_filename(self):
+        return u"%s.pdf" % self.context.document_id[:9]
 
 
@@ -112,4 +128,8 @@
     download_name = u'scan.pdf'
 
+    @property
+    def download_filename(self):
+        return u"%s.pdf" % self.context.document_id[:9]
+
 
 class PDFScanImage(Image):
@@ -121,4 +141,8 @@
     download_name = u'scan.pdf'
 
+    @property
+    def download_filename(self):
+        return u"%s" % self.context.document_id[:9]
+
 class PDFScanSlip(PDFScanDisplay):
     grok.view(PDFDocumentSlipPage)
Index: /main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py
===================================================================
--- /main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py	(revision 12459)
+++ /main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py	(revision 12460)
@@ -307,10 +307,14 @@
             name='upload_pdfscanmanageupload').click()
         self.assertTrue(
-            'href="http://localhost/app/customers/K1000000/documents/%s/scan.pdf">PDF File</a>'
-            % docid in self.browser.contents)
+            'href="http://localhost/app/customers/K1000000/documents/%s/scan.pdf">%s.pdf</a>'
+            % (docid, docid[:9]) in self.browser.contents)
         # Browsing the link shows a real pdf
         self.browser.open('scan.pdf')
         self.assertEqual(
             self.browser.headers['content-type'], 'application/pdf')
+        # The name of the downloaded file will be different
+        self.assertEqual(
+            self.browser.headers['Content-Disposition'],
+            'attachment; filename="%s.pdf' % docid[:9])
 
 class ContractUITests(CustomersFullSetup):
