diff --git a/addons/thunderbird/installer.py b/addons/thunderbird/installer.py
index 69576aa2a46..4e0f4435d31 100644
--- a/addons/thunderbird/installer.py
+++ b/addons/thunderbird/installer.py
@@ -39,15 +39,28 @@ class thunderbird_installer(osv.osv_memory):
self.write(cr, uid, ids, data)
return False
+ def process_pdf_file(self, cr, uid, ids, context):
+ """
+ Default Attach Thunderbird Plug-in Installation File.
+ """
+ data = {}
+ pdf_file = open(config['addons_path'] + "/thunderbird/doc/Installation Guide to OpenERP Thunderbid Plug-in.pdf", 'r')
+ data['pdf_file'] = base64.encodestring(pdf_file.read())
+ self.write(cr, uid, ids, data)
+ return False
+
_columns = {
- 'name':fields.char('File name', size=34, required=True, help='Save Thunderbird plugin file.'),
+ 'name':fields.char('File name', size=34),
+ 'pdf_name':fields.char('File name', size=64),
'thunderbird':fields.boolean('Thunderbird Module ', help="Allows you to select an object that you’d like to add to your email and its attachments."),
'plugin_file':fields.binary('Thunderbird Plug-in', readonly=True, help="Thunderbird plug-in file. Save as this file and install this plug-in in thunderbir."),
-
+ 'pdf_file':fields.binary('Thunderbird Plug-in Installation File', help="The documentation file :- how to install Thunderbird Plug-in.", readonly=True),
}
+
_defaults = {
'thunderbird' : True,
'name' : 'tiny_plugin-2.0.xpi',
+ 'pdf_name' : 'Installation Guide to OpenERP Thunderbid Plug-in.pdf',
}
thunderbird_installer()
diff --git a/addons/thunderbird/thunderbird_installer.xml b/addons/thunderbird/thunderbird_installer.xml
index bd19a780456..59e0cc4f604 100644
--- a/addons/thunderbird/thunderbird_installer.xml
+++ b/addons/thunderbird/thunderbird_installer.xml
@@ -21,11 +21,15 @@
+
-
+
+
+
+