[IMP] outlook: user manual, installer
bzr revid: hmo@tinyerp.com-20100817121936-eykbwq3diusyewuv
This commit is contained in:
parent
ea78e90b3e
commit
46123fc988
|
@ -40,6 +40,7 @@ class crm_installer(osv.osv_memory):
|
|||
'sale_crm': fields.boolean('Opportunity to Quotation', help="This module relates sale to opportunity cases in the CRM."),
|
||||
'fetchmail': fields.boolean('Fetch Emails', help="Fetchmail Server."),
|
||||
'thunderbird': fields.boolean('Thunderbird', help="Thunderbird Interface."),
|
||||
'outlook': fields.boolean('MS-Outlook', help="MS-Outlook Interface."),
|
||||
'wiki_sale_faq': fields.boolean('Sale FAQ', help="Sale FAQ."),
|
||||
}
|
||||
|
||||
|
|
|
@ -41,8 +41,7 @@
|
|||
<group colspan="2" col="2">
|
||||
<separator string="Plugins" colspan="4" />
|
||||
<field name="thunderbird" />
|
||||
<!-- <label string="*Outlook*" />-->
|
||||
<!-- TODO <field name="outlook" />-->
|
||||
<field name="outlook" />
|
||||
</group>
|
||||
</group>
|
||||
</data>
|
||||
|
|
|
@ -18,4 +18,5 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
import installer
|
||||
|
||||
|
|
|
@ -18,14 +18,16 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
||||
{
|
||||
"name" : "Outlook Interface",
|
||||
"version" : "1.0",
|
||||
"author" : "OpenERP SA",
|
||||
"website" : "http://www.openerp.com/",
|
||||
"depends" : ["base", "mail_gateway"],
|
||||
"category" : "Generic Modules/Outlook interface",
|
||||
"description": '''
|
||||
'name' : 'Outlook Interface',
|
||||
'version' : '1.0',
|
||||
'author' : 'OpenERP SA',
|
||||
'website' : 'http://www.openerp.com/',
|
||||
'depends' : ['base', 'mail_gateway'],
|
||||
'category' : 'Generic Modules/Outlook interface',
|
||||
'description': '''
|
||||
This module provide the Outlook plug-in.
|
||||
|
||||
Outlook plug-in allows you to select an object that you’d like to add
|
||||
|
@ -34,11 +36,11 @@
|
|||
mail in mailgate.messages with attachments.
|
||||
|
||||
''',
|
||||
"init_xml" : [],
|
||||
"demo_xml" : [],
|
||||
"update_xml" : [],
|
||||
"active": False,
|
||||
"installable": True
|
||||
'init_xml' : [],
|
||||
'demo_xml' : [],
|
||||
'update_xml' : ['outlook_installer.xml'],
|
||||
'active': False,
|
||||
'installable': True
|
||||
|
||||
}
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -0,0 +1,70 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from osv import fields
|
||||
from osv import osv
|
||||
from tools import config
|
||||
|
||||
import base64
|
||||
|
||||
class outlook_installer(osv.osv_memory):
|
||||
_name = 'outlook.installer'
|
||||
_inherit = 'res.config.installer'
|
||||
|
||||
def default_get(self, cr, uid, fields, context={}):
|
||||
data = super(outlook_installer, self).default_get(cr, uid, fields, context)
|
||||
doc_file = open(config['addons_path'] + "/outlook/doc/Installation Guide to OpenERP Outlook Plug-in.doc", 'r')
|
||||
data['doc_file'] = base64.encodestring(doc_file.read())
|
||||
file = open(config['addons_path'] + "/outlook/plugin/openerp-outlook-plugin.zip", 'r')
|
||||
data['plugin_file'] = base64.encodestring(file.read())
|
||||
return data
|
||||
|
||||
_columns = {
|
||||
'name':fields.char('File name', size=34),
|
||||
'doc_name':fields.char('File name', size=64),
|
||||
'outlook':fields.boolean('Outlook Module ', help="Allows you to select an object that you’d like to add to your email and its attachments."),
|
||||
'plugin_file':fields.binary('Outlook Plug-in', readonly=True, help="outlook plug-in file. Save as this file and install this plug-in in outlook."),
|
||||
'doc_file':fields.binary('Installation Manual', help="The documentation file :- how to install Outlook Plug-in.", readonly=True),
|
||||
'description':fields.text('Description', readonly=True)
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
'outlook' : True,
|
||||
'name' : 'OpenERP-Outlook-PlugIn.zip',
|
||||
'doc_name' : 'Installation Guide to OpenERP Outlook Plug-in.doc',
|
||||
'description' : """ * Save the outlook plugin.
|
||||
* Follows the step to install outlook plugin.
|
||||
Pre-requirements :
|
||||
1) Python 2.6+ .
|
||||
2) Python for Windows extensions - PyWin32 this module for python must be installed for appropriate version of the Python.
|
||||
|
||||
How to install openerp-outlook plug-in?
|
||||
1) Extract zip file “openerp-outlook-plugin.zip” .
|
||||
2) Open the folder openerp-outlook-plugin.
|
||||
3) And Run “Register-plugin.bat” file.
|
||||
4) Run Outlook and Check addin has been registered.
|
||||
5) Tools->OpenERP Configuration and test your connection.
|
||||
6) See User Guide for More.
|
||||
7) Keep All extratced files in some safe palce
|
||||
(e.g. python installation Directory "C:\pythonXX\\" or Windows installation Directory "C:\Program Files\\" ).
|
||||
"""
|
||||
}
|
||||
outlook_installer()
|
|
@ -0,0 +1,125 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="view_outlook_installer" model="ir.ui.view">
|
||||
<field name="name">outlook.installer.view</field>
|
||||
<field name="model">outlook.installer</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="base.res_config_installer"/>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<form position="attributes">
|
||||
<attribute name="string">Outlook Plug-In Installation</attribute>
|
||||
</form>
|
||||
<separator string="title" position="attributes">
|
||||
<attribute name="string">Outlook</attribute>
|
||||
</separator>
|
||||
<xpath expr="//label[@string='description']" position="attributes">
|
||||
<attribute name="string">This Module allows you to select an object that you would like to add to your email and its attachments from MS Outlook. You can select a partner, a task, a project, an analytical account, or any other object and Archived selected mail in mailgate.messages with attachments.</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//button[@string='Install Modules']" position="attributes">
|
||||
<attribute name="string">Configure</attribute>
|
||||
</xpath>
|
||||
<xpath expr='//separator[@string="vsep"]' position='attributes'>
|
||||
<attribute name='string'></attribute>
|
||||
<attribute name='rowspan'>15</attribute>
|
||||
</xpath>
|
||||
<group colspan="8" position="replace">
|
||||
<group colspan="8" height="450" width="750">
|
||||
<field name="outlook" invisible="1" />
|
||||
<field name="name" invisible="1"/>
|
||||
<field name="doc_name" invisible="1"/>
|
||||
<newline/>
|
||||
<field name="plugin_file" filename="name"/>
|
||||
<newline/>
|
||||
<field name="doc_file" filename="doc_name"/>
|
||||
<newline/>
|
||||
<separator string="Outlook plugin installation note." colspan="4"/>
|
||||
<field name="description" nolabel="1" colspan="8"/>
|
||||
</group>
|
||||
</group>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_outlook_installer" model="ir.actions.act_window">
|
||||
<field name="name">Outlook Module Installation</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">outlook.installer</field>
|
||||
<field name="view_id" ref="view_outlook_installer"/>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<record id="outlook_installer_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_outlook_installer"/>
|
||||
<field name="sequence">4</field>
|
||||
</record>
|
||||
|
||||
<!-- Configuration wizard. -->
|
||||
|
||||
<record id="view_outlook_wizard" model="ir.ui.view">
|
||||
<field name="name">outlook.wizard</field>
|
||||
<field name="model">outlook.installer</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string= "Outlook Plug-In Configuration">
|
||||
<group colspan="4">
|
||||
<separator string="Configure Outlook Module" colspan="4"/>
|
||||
<group colspan="4" col="10">
|
||||
<group colspan="2">
|
||||
<image name="gtk-dialog-info"/>
|
||||
<newline/>
|
||||
<label align="0.0" string="This Module allows you to select an object that you would like to add to your email and its attachments from MS Outlook. You can select a partner, a task, a project, an analytical account, or any other object and Archived selected mail in mailgate.messages with attachments" width="200"/>
|
||||
</group>
|
||||
<group colspan="8">
|
||||
<field name="outlook" invisible="1"/>
|
||||
<field name="name" invisible="1"/>
|
||||
<field name="doc_name" invisible="1"/>
|
||||
<newline/>
|
||||
<field name="plugin_file" filename="name"/>
|
||||
<newline/>
|
||||
<field name="doc_file" filename="doc_name"/>
|
||||
<newline/>
|
||||
<separator string="Outlook plugin installation note." colspan="4"/>
|
||||
<field name="description" nolabel="1" colspan="8"/>
|
||||
</group>
|
||||
</group>
|
||||
</group>
|
||||
<separator string="" colspan="4"/>
|
||||
<group colspan="4">
|
||||
<label align="0.0" string="" colspan="3"/>
|
||||
<button colspan="1" icon="gtk-close" special="cancel" string="_Close"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_outlook_wizard" model="ir.actions.act_window">
|
||||
<field name="name">Outlook Module Installation</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">outlook.installer</field>
|
||||
<field name="view_id" ref="view_outlook_wizard"/>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="base.menu_base_config_mail"
|
||||
name="Mail"
|
||||
parent="base.menu_base_config"
|
||||
sequence="10"/>
|
||||
|
||||
<menuitem id="base.menu_base_config_plugins"
|
||||
name="Plugins"
|
||||
parent="base.menu_base_config_mail"
|
||||
sequence="10" />
|
||||
|
||||
<menuitem id="menu_base_config_plugins_outlook"
|
||||
action="action_outlook_wizard"
|
||||
name="Outlook"
|
||||
parent="base.menu_base_config_plugins"
|
||||
sequence="10" />
|
||||
</data>
|
||||
</openerp>
|
|
@ -92,7 +92,7 @@
|
|||
<separator string="" colspan="4"/>
|
||||
<group colspan="4">
|
||||
<label align="0.0" string="" colspan="3"/>
|
||||
<button colspan="1" icon="gtk-cancel" special="cancel" string="Close"/>
|
||||
<button colspan="1" icon="gtk-close" special="cancel" string="_Close"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
|
@ -109,8 +109,8 @@
|
|||
</record>
|
||||
|
||||
<menuitem id="base.menu_base_config_mail" name="Mail" parent="base.menu_base_config" sequence="10"/>
|
||||
<menuitem id="menu_base_config_plugins" name="Plugins" parent="base.menu_base_config_mail" sequence="10" />
|
||||
<menuitem id="menu_base_config_plugins_thunderbird" action="action_thunderbird_wizard" name="Thunderbird" parent="menu_base_config_plugins" sequence="10" />
|
||||
<menuitem id="base.menu_base_config_plugins" name="Plugins" parent="base.menu_base_config_mail" sequence="10" />
|
||||
<menuitem id="menu_base_config_plugins_thunderbird" action="action_thunderbird_wizard" name="Thunderbird" parent="base.menu_base_config_plugins" sequence="10" />
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
Loading…
Reference in New Issue