summaryrefslogtreecommitdiff
path: root/addons/plugin_thunderbird/plugin_thunderbird.py
diff options
context:
space:
mode:
authorBharat Devnani (OpenERP) <bde@tinyerp.com>2012-06-11 14:27:44 +0530
committerBharat Devnani (OpenERP) <bde@tinyerp.com>2012-06-11 14:27:44 +0530
commit2529ede93a89b802950fff3e5d6c255ca3e16c4b (patch)
treed57dab72c9466a74cb33e47b2daf93c289e3a2af /addons/plugin_thunderbird/plugin_thunderbird.py
parenta46b5cfeab0990cdea1e264b65b12a2bb65b8b7d (diff)
parent2f70c11e1928be7a0c295b2b524d6fd6efd15046 (diff)
[MERGE] merged with lp:~openerp-dev/openobject-addons/trunk-application_setting_cleanup-atp
bzr revid: bde@tinyerp.com-20120611085744-1wi5vglx330e53b9
Diffstat (limited to 'addons/plugin_thunderbird/plugin_thunderbird.py')
-rw-r--r--addons/plugin_thunderbird/plugin_thunderbird.py37
1 files changed, 20 insertions, 17 deletions
diff --git a/addons/plugin_thunderbird/plugin_thunderbird.py b/addons/plugin_thunderbird/plugin_thunderbird.py
index 7e9b5626e5b..88d84c57cd2 100644
--- a/addons/plugin_thunderbird/plugin_thunderbird.py
+++ b/addons/plugin_thunderbird/plugin_thunderbird.py
@@ -34,21 +34,24 @@ class plugin_thunderbird_installer(osv.osv_memory):
'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)
}
+ def default_get(self, cr, uid, fields, context=None):
+ res = {}
+ plugin_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url') + '/plugin_thunderbird/static/openerp_plugin.xpi'
+ description = """
+ Thunderbird plugin installation:
+ 1. Save the Thunderbird plug-in.
+ 2. From the Thunderbird menubar: Tools ­> Add-ons -> Screwdriver/Wrench Icon -> Install add-on from file...
+ 4. Select the plug-in (the file named openerp_plugin.xpi).
+ 5. Click "Install Now".
+ 6. Restart Thunderbird.
+ 7. From the Thunderbird menubar: OpenERP -> Configuration.
+ 8. Configure your openerp server.
+ """
+ res['thunderbird'] = True,
+ res['name'] = 'openerp_plugin.xpi'
+ res['plugin_file'] = plugin_url
+ res['pdf_file'] = 'http://doc.openerp.com/book/2/2_6_Comms/2_6_Comms_thunderbird.html',
+ res['description'] = description
+ return res
- _defaults = {
- 'thunderbird' : True,
- 'name' : 'openerp_plugin.xpi',
- 'pdf_file' : 'http://doc.openerp.com/book/2/2_6_Comms/2_6_Comms_thunderbird.html',
- 'plugin_file' : '/plugin_thunderbird/static/openerp_plugin.xpi',
- 'description' : """
-Thunderbird plugin installation:
- 1. Save the Thunderbird plug-in.
- 2. From the Thunderbird menubar: Tools ­> Add-ons -> Screwdriver/Wrench Icon -> Install add-on from file...
- 4. Select the plug-in (the file named openerp_plugin.xpi).
- 5. Click "Install Now".
- 6. Restart Thunderbird.
- 7. From the Thunderbird menubar: OpenERP -> Configuration.
- 8. Configure your openerp server.
-"""
- }
-
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file