[FIX] thunderbird plugin installation

bzr revid: al@openerp.com-20120130205450-j5qiww84llbc5ric
This commit is contained in:
Antony Lesuisse 2012-01-30 21:54:50 +01:00
parent 4a94de154b
commit db03c09236
54 changed files with 13 additions and 40 deletions

View File

@ -19,4 +19,4 @@
#
##############################################################################
import installer
import plugin_thunderbird

View File

@ -38,8 +38,7 @@ HR Applicant and Project Issue from selected mails.
""",
"init_xml" : [],
"demo_xml" : [],
"update_xml" : ['thunderbird_installer.xml',
'security/ir.model.access.csv'],
"update_xml" : ['plugin_thunderbird.xml'],
"active": False,
"installable": True,
"certificate" : "00899858104035139949",

View File

@ -22,11 +22,8 @@
from osv import fields
from osv import osv
import base64
import addons
class thunderbird_installer(osv.osv_memory):
_name = 'thunderbird.installer'
class plugin_thunderbird_installer(osv.osv_memory):
_name = 'plugin_thunderbird.installer'
_inherit = 'res.config.installer'
_columns = {
@ -42,24 +39,16 @@ class thunderbird_installer(osv.osv_memory):
'thunderbird' : True,
'name' : 'openerp_plugin.xpi',
'pdf_file' : 'http://doc.openerp.com/book/2/2_6_Comms/2_6_Comms_thunderbird.html',
'plugin_file' : 'https://addons.mozilla.org/en-US/thunderbird/addon/openerp-plugin/',
'plugin_file' : '/plugin_thunderbird/static/openerp_plugin.xpi',
'description' : """
Thunderbird plugin installation:
1. Save the Thunderbird plug-­in.
2. From the menu bar of Thunderbird, open Tools ­> Add-ons.
3. Click "Install".
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.
Configure OpenERP in Thunderbird:
1. Go to Tools > OpenERP Configuration.
2. Check the data (configured by default).
3. Click "Connect".
4. A message appears with the state of your connection.
5. If the connection fails, check if your database is opened, and check the data again.
6. If the connection succeeds, start to archive e-mails in OpenERP.
7. From the Thunderbird menubar: OpenERP -> Configuration.
8. Configure your openerp server.
"""
}
thunderbird_installer()

View File

@ -2,8 +2,8 @@
<data>
<record id="view_thunderbird_installer" model="ir.ui.view">
<field name="name">thunderbird.installer.view</field>
<field name="model">thunderbird.installer</field>
<field name="name">plugin_thunderbird.installer.view</field>
<field name="model">plugin_thunderbird.installer</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.res_config_installer"/>
<field name="arch" type="xml">
@ -48,13 +48,12 @@
<record id="action_thunderbird_installer" model="ir.actions.act_window">
<field name="name">Install Thunderbird Plug-In</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">thunderbird.installer</field>
<field name="res_model">plugin_thunderbird.installer</field>
<field name="view_id" ref="view_thunderbird_installer"/>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<record id="thunderbird_installer_todo" model="ir.actions.todo">
<field name="action_id" ref="action_thunderbird_installer"/>
<field name="category_id" ref="base.category_sales_management_config"/>
@ -62,20 +61,8 @@
<field name="type">automatic</field>
</record>
<record id="action_thunderbird_wizard" model="ir.actions.act_window">
<field name="name">Install Thunderbird Plug-In</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">thunderbird.installer</field>
<field name="view_id" ref="view_thunderbird_installer"/>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="context">{'menu':True}</field>
</record>
<menuitem id="base.menu_base_config_plugins" name="Plugins" parent="base.menu_base_config" sequence="10"/>
<menuitem id="menu_base_config_plugins_thunderbird" action="action_thunderbird_wizard" parent="base.menu_base_config_plugins" sequence="10"/>
<menuitem id="menu_base_config_plugins_thunderbird" action="action_thunderbird_installer" parent="base.menu_base_config_plugins" sequence="10"/>
</data>
</openerp>

View File

@ -1,2 +0,0 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_thunderbird_ir_actions_todo","ir.actions.todo.thunderbird.installer","base.model_ir_actions_todo","base.group_sale_manager",1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_thunderbird_ir_actions_todo ir.actions.todo.thunderbird.installer base.model_ir_actions_todo base.group_sale_manager 1 0 0 0

Binary file not shown.