summaryrefslogtreecommitdiff
path: root/addons/plugin_outlook/plugin_outlook.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2012-06-25 12:32:35 +0200
committerRaphael Collet <rco@openerp.com>2012-06-25 12:32:35 +0200
commit2979554b40e51aed414636e9bc6e34f7a8dcebdd (patch)
tree770674df72adce522ef95f373993e20f8fdb7d2d /addons/plugin_outlook/plugin_outlook.py
parentdbafe29d94e8f22657dd5851749d877931e2f8fc (diff)
[IMP] plugin_outlook, plugin_thunderbird: simplify wizards
bzr revid: rco@openerp.com-20120625103235-111al037cqvpaitr
Diffstat (limited to 'addons/plugin_outlook/plugin_outlook.py')
-rw-r--r--addons/plugin_outlook/plugin_outlook.py25
1 files changed, 8 insertions, 17 deletions
diff --git a/addons/plugin_outlook/plugin_outlook.py b/addons/plugin_outlook/plugin_outlook.py
index 2b05282163f..9da90f3839c 100644
--- a/addons/plugin_outlook/plugin_outlook.py
+++ b/addons/plugin_outlook/plugin_outlook.py
@@ -28,24 +28,15 @@ 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)
+ 'plugin32': fields.char('Outlook Plug-in 32bits', size=256, readonly=True, help="Outlook plug-in file. Save this file and install it in Outlook."),
+ 'plugin64': fields.char('Outlook Plug-in 64bits', size=256, readonly=True, help="Outlook plug-in file. Save this file and install it in Outlook."),
}
-
+
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
+ res = super(outlook_installer, self).default_get(cr, uid, fields, context)
+ base_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url')
+ res['plugin32'] = base_url + '/plugin_outlook/static/openerp-outlook-plugin/OpenERPOutlookPluginSetup32.msi'
+ res['plugin64'] = base_url + '/plugin_outlook/static/openerp-outlook-plugin/OpenERPOutlookPluginSetup64.msi'
return res
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: