From b51702f612ac65896c68e5f31dba22016cb8b1be Mon Sep 17 00:00:00 2001 From: "ksa (Open ERP)" Date: Mon, 13 Sep 2010 19:21:42 +0530 Subject: [PATCH] [IMP]: Improvement for doc and installer file bzr revid: ksa@tinyerp.co.in-20100913135142-6gkc3v7gqh2z6g9n --- addons/thunderbird/installer.py | 7 +++---- addons/thunderbird/thunderbird_installer.xml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/addons/thunderbird/installer.py b/addons/thunderbird/installer.py index cb963831218..62664fedccb 100644 --- a/addons/thunderbird/installer.py +++ b/addons/thunderbird/installer.py @@ -25,6 +25,7 @@ from tools import config import base64 import addons +import difflib class thunderbird_installer(osv.osv_memory): _name = 'thunderbird.installer' @@ -32,8 +33,7 @@ class thunderbird_installer(osv.osv_memory): def default_get(self, cr, uid, fields, context={}): data = super(thunderbird_installer, self).default_get(cr, uid, fields, context) - pdf_file = open(addons.get_module_resource('thunderbird','doc', 'Installation Guide to OpenERP Thunderbid Plug-in.pdf'),'rb') - data['pdf_file'] = base64.encodestring(pdf_file.read()) + data['pdf_file'] = 'http://doc.openerp.com/book/2/2_6_Comms/2_6_Comms_thunderbird.html' file = open(addons.get_module_resource('thunderbird','plugin', 'openerp_plugin.xpi'),'rb') data['plugin_file'] = base64.encodestring(file.read()) return data @@ -43,14 +43,13 @@ class thunderbird_installer(osv.osv_memory): 'pdf_name':fields.char('File name', size=64), 'thunderbird':fields.boolean('Thunderbird Plug-in', 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 thunderbird."), - 'pdf_file':fields.binary('Installation Manual', help="The documentation file :- how to install Thunderbird Plug-in.", readonly=True), + 'pdf_file':fields.char('Installation Manual', size="264", help="The documentation file :- how to install Thunderbird Plug-in.", readonly=True), 'description':fields.text('Description', readonly=True) } _defaults = { 'thunderbird' : True, 'name' : 'openerp_plugin.xpi', - 'pdf_name' : 'Installation Guide to OpenERP Thunderbid Plug-in.pdf', 'description' : """ * Save the Thunderbird plug-­in. * Follow these steps to install Thunderbird plug-­in. diff --git a/addons/thunderbird/thunderbird_installer.xml b/addons/thunderbird/thunderbird_installer.xml index d54cf160a50..0c8b431a82f 100644 --- a/addons/thunderbird/thunderbird_installer.xml +++ b/addons/thunderbird/thunderbird_installer.xml @@ -39,7 +39,7 @@ - +