[FIX] thunderbird plugin installation
bzr revid: al@openerp.com-20120130205450-j5qiww84llbc5ric
|
@ -19,4 +19,4 @@
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
import installer
|
import plugin_thunderbird
|
||||||
|
|
|
@ -38,8 +38,7 @@ HR Applicant and Project Issue from selected mails.
|
||||||
""",
|
""",
|
||||||
"init_xml" : [],
|
"init_xml" : [],
|
||||||
"demo_xml" : [],
|
"demo_xml" : [],
|
||||||
"update_xml" : ['thunderbird_installer.xml',
|
"update_xml" : ['plugin_thunderbird.xml'],
|
||||||
'security/ir.model.access.csv'],
|
|
||||||
"active": False,
|
"active": False,
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"certificate" : "00899858104035139949",
|
"certificate" : "00899858104035139949",
|
||||||
|
|
|
@ -22,11 +22,8 @@
|
||||||
from osv import fields
|
from osv import fields
|
||||||
from osv import osv
|
from osv import osv
|
||||||
|
|
||||||
import base64
|
class plugin_thunderbird_installer(osv.osv_memory):
|
||||||
import addons
|
_name = 'plugin_thunderbird.installer'
|
||||||
|
|
||||||
class thunderbird_installer(osv.osv_memory):
|
|
||||||
_name = 'thunderbird.installer'
|
|
||||||
_inherit = 'res.config.installer'
|
_inherit = 'res.config.installer'
|
||||||
|
|
||||||
_columns = {
|
_columns = {
|
||||||
|
@ -42,24 +39,16 @@ class thunderbird_installer(osv.osv_memory):
|
||||||
'thunderbird' : True,
|
'thunderbird' : True,
|
||||||
'name' : 'openerp_plugin.xpi',
|
'name' : 'openerp_plugin.xpi',
|
||||||
'pdf_file' : 'http://doc.openerp.com/book/2/2_6_Comms/2_6_Comms_thunderbird.html',
|
'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' : """
|
'description' : """
|
||||||
Thunderbird plugin installation:
|
Thunderbird plugin installation:
|
||||||
1. Save the Thunderbird plug-in.
|
1. Save the Thunderbird plug-in.
|
||||||
2. From the menu bar of Thunderbird, open Tools > Add-ons.
|
2. From the Thunderbird menubar: Tools > Add-ons -> Screwdriver/Wrench Icon -> Install add-on from file...
|
||||||
3. Click "Install".
|
|
||||||
4. Select the plug-in (the file named openerp_plugin.xpi).
|
4. Select the plug-in (the file named openerp_plugin.xpi).
|
||||||
5. Click "Install Now".
|
5. Click "Install Now".
|
||||||
6. Restart Thunderbird.
|
6. Restart Thunderbird.
|
||||||
|
7. From the Thunderbird menubar: OpenERP -> Configuration.
|
||||||
Configure OpenERP in Thunderbird:
|
8. Configure your openerp server.
|
||||||
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.
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
||||||
thunderbird_installer()
|
|
|
@ -2,8 +2,8 @@
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<record id="view_thunderbird_installer" model="ir.ui.view">
|
<record id="view_thunderbird_installer" model="ir.ui.view">
|
||||||
<field name="name">thunderbird.installer.view</field>
|
<field name="name">plugin_thunderbird.installer.view</field>
|
||||||
<field name="model">thunderbird.installer</field>
|
<field name="model">plugin_thunderbird.installer</field>
|
||||||
<field name="type">form</field>
|
<field name="type">form</field>
|
||||||
<field name="inherit_id" ref="base.res_config_installer"/>
|
<field name="inherit_id" ref="base.res_config_installer"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
|
@ -48,13 +48,12 @@
|
||||||
<record id="action_thunderbird_installer" model="ir.actions.act_window">
|
<record id="action_thunderbird_installer" model="ir.actions.act_window">
|
||||||
<field name="name">Install Thunderbird Plug-In</field>
|
<field name="name">Install Thunderbird Plug-In</field>
|
||||||
<field name="type">ir.actions.act_window</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_id" ref="view_thunderbird_installer"/>
|
||||||
<field name="view_type">form</field>
|
<field name="view_type">form</field>
|
||||||
<field name="view_mode">form</field>
|
<field name="view_mode">form</field>
|
||||||
<field name="target">new</field>
|
<field name="target">new</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="thunderbird_installer_todo" model="ir.actions.todo">
|
<record id="thunderbird_installer_todo" model="ir.actions.todo">
|
||||||
<field name="action_id" ref="action_thunderbird_installer"/>
|
<field name="action_id" ref="action_thunderbird_installer"/>
|
||||||
<field name="category_id" ref="base.category_sales_management_config"/>
|
<field name="category_id" ref="base.category_sales_management_config"/>
|
||||||
|
@ -62,20 +61,8 @@
|
||||||
<field name="type">automatic</field>
|
<field name="type">automatic</field>
|
||||||
</record>
|
</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="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>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
|
@ -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
|
|
|
Before Width: | Height: | Size: 852 B After Width: | Height: | Size: 852 B |
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 888 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 363 B |
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 604 B After Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 89 B After Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |