From 8e62357eedd63e4dbd5c26d5f407a09b415dc067 Mon Sep 17 00:00:00 2001 From: "Ysa (Open ERP)" Date: Tue, 27 Apr 2010 16:12:29 +0530 Subject: [PATCH 01/62] [ADD-IMP] Thunderbird :- add thunderbird plugin installation file and pdf file attach in configuration wizard. bzr revid: ysa@tinyerp.co.in-20100427104229-m64bcupncox8jmfe --- addons/thunderbird/installer.py | 17 +++++++++++++++-- addons/thunderbird/thunderbird_installer.xml | 6 +++++- 2 files changed, 20 insertions(+), 3 deletions(-) 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 @@ + - +