From 349b2a270776954c6274e9f347ba1c735f9bd509 Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Thu, 7 Jun 2012 15:45:16 +0530 Subject: [IMP] correct the link of thunderbird plugin xpi file and outlook msi file configuration bzr revid: nco@tinyerp.com-20120607101516-uwvenu14iwreubt8 --- addons/plugin_outlook/plugin_outlook.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'addons/plugin_outlook') diff --git a/addons/plugin_outlook/plugin_outlook.py b/addons/plugin_outlook/plugin_outlook.py index 676540dc63a..ac63e0a0d23 100644 --- a/addons/plugin_outlook/plugin_outlook.py +++ b/addons/plugin_outlook/plugin_outlook.py @@ -22,29 +22,30 @@ from osv import fields from osv import osv import addons - import base64 class outlook_installer(osv.osv_memory): _name = 'outlook.installer' _inherit = 'res.config.installer' - _columns = { 'name':fields.char('Outlook Plug-in 32bits', size=64, readonly=True, help="outlook plug-in file. Save as this file and install this plug-in in outlook."), 'name2':fields.char('Outlook Plug-in 64bits', size=64, readonly=True, help="outlook plug-in file. Save as this file and install this plug-in in outlook."), 'description':fields.text('Description', readonly=True) } - - _defaults = { - 'name' : '/plugin_outlook/static/openerp-outlook-plugin/OpenERPOutlookPluginSetup32.msi', - 'name2' : '/plugin_outlook/static/openerp-outlook-plugin/OpenERPOutlookPluginSetup64.msi', - 'description' : """ + + def default_get(self, cr, uid, fields, context=None): + res = {} + plugin_32bit_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url') + '/plugin_outlook/static/openerp-outlook-plugin/OpenERPOutlookPluginSetup32.msi' + plugin_64bit_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url') + '/plugin_outlook/static/openerp-outlook-plugin/OpenERPOutlookPluginSetup64.msi' + description = """ Click on icon next to the link above to download the installer either for 32 or 64 bits and execute it. System requirements: 1. MS Outlook 2005 or above. 2. MS .Net Framework 3.5 or above. """ - } - + res['name'] = plugin_32bit_url + res['name2'] = plugin_64bit_url + res['description'] = description + return res # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: -- cgit v1.2.3 From ec238c4da1668c0d1275dcb70984081de3a10a0b Mon Sep 17 00:00:00 2001 From: "Atul Patel (OpenERP)" Date: Wed, 13 Jun 2012 15:51:08 +0530 Subject: [FIX]:fix for outlook button bzr revid: atp@tinyerp.com-20120613102108-z7zjgfnue55iswwx --- addons/plugin_outlook/plugin_outlook.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/plugin_outlook') diff --git a/addons/plugin_outlook/plugin_outlook.xml b/addons/plugin_outlook/plugin_outlook.xml index c4791ee153c..ada4aa2981e 100644 --- a/addons/plugin_outlook/plugin_outlook.xml +++ b/addons/plugin_outlook/plugin_outlook.xml @@ -53,7 +53,7 @@ - +