diff --git a/addons/thunderbird/installer.py b/addons/thunderbird/installer.py index 6870dedeb53..8f852e9ebff 100644 --- a/addons/thunderbird/installer.py +++ b/addons/thunderbird/installer.py @@ -51,21 +51,21 @@ class thunderbird_installer(osv.osv_memory): 'thunderbird' : True, 'name' : 'openerp_plugin.xpi', 'pdf_name' : 'Installation Guide to OpenERP Thunderbid Plug-in.pdf', - 'description' : """* Save the Thunderbird plug­in. -* Follows the following step to install Thunderbird plug­in. - 1. From Menu Bar of Thunderbird, open Tools ­> Add ons. - 2. Click on install button and a browser window appears. - 3. Select the plug-in(.xpi file) and click Ok. - 4. Software installation window appears and within a short time “Install Now” button will be enabled. + 'description' : """* Save the Thunderbird plug-­in. +* Follow the following steps to install Thunderbird plug-­in. + 1. From Menu Bar of Thunderbird, open Tools ­> Add-ons. + 2. Click install button and a browser window appears. + 3. Select the plug-in(openerp_plugin.xpi file) and click Ok. + 4. A software installation window appears and within a short time “Install Now” button will be enabled. 5. Click "Install Now". 6. Restart Thunderbird. * Follow the steps to configure OpenERP in Thunderbird. - 1. Go to Tools > OpenERP Synchronization. + 1. Go to Tools > OpenERP Configuration. 2. Check data (configured by default). 3. Click "Connect". 4. A message appears with state of your connection. - 5. If your connection failed, check if your database is open, and check your data. - 6. If you have a good connection, you can start to archive mail in OpenERP. """ + 5. If your connection failed, check if your database is open, and check your data again. + 6. If your database is connected successfully, you can start to archive your e-mail in OpenERP. """ } thunderbird_installer() diff --git a/addons/thunderbird/partner/partner.py b/addons/thunderbird/partner/partner.py index 48e9bfc1325..a7795d1a602 100644 --- a/addons/thunderbird/partner/partner.py +++ b/addons/thunderbird/partner/partner.py @@ -148,19 +148,22 @@ class thunderbird_partner(osv.osv_memory): create_id = self.pool.get('res.partner.address').create(cr, user, dictcreate) return create_id - def history_message(self,cr,uid,vals): + def history_message(self, cr, uid, vals): dictcreate = dict(vals) + ref_ids = str(dictcreate.get('ref_ids')).split(';') + msg = dictcreate.get('message') server_tools_pool = self.pool.get('email.server.tools') - res_id = int(dictcreate.get('res_id')) - model = str(dictcreate.get('model')) - message = str(dictcreate.get('message')) - server_tools_pool.history_message(cr,uid,model,res_id,message) + for ref_id in ref_ids: + ref = ref_id.split(',') + model = ref[0] + res_id = int(ref[1]) + server_tools_pool.history_message(cr, uid, model, res_id, msg) return True def process_email(self,cr,uid,vals): dictcreate = dict(vals) model = str(dictcreate.get('model')) - message = str(dictcreate.get('message')) + message = dictcreate.get('message') return self.pool.get('email.server.tools').process_email(cr, uid, model, message, attach=True, context=None) def search_contact(self, cr, user, vals): diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi index 99292b2283b..d32efb63511 100644 Binary files a/addons/thunderbird/plugin/openerp_plugin.xpi and b/addons/thunderbird/plugin/openerp_plugin.xpi differ diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar index 3c322b423f5..7bfca54ed48 100644 Binary files a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar and b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar differ diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js index 5757897de96..a9afa70e10c 100755 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js @@ -1,8 +1,6 @@ function config_close() { - //window.close("chrome://openerp_plugin/content/config_change.xul", "", "chrome"); - //ksa window.close("chrome://openerp_plugin/content/config_change.xul", "", "chrome"); window.open("chrome://openerp_plugin/content/config.xul", "", "chrome"); } @@ -62,13 +60,10 @@ function config_ok() } setServer("http://"+document.getElementById('txtcurl').value +":" + document.getElementById('txtcport').value); window.close("chrome://openerp_plugin/content/config_change.xul", "", "chrome"); - //ksa window.open("chrome://openerp_plugin/content/config.xul", "", "chrome"); } function openConfigChange() { - //window.open("chrome://openerp_plugin/content/config_change.xul", "", "chrome"); - //ksa window.close("chrome://openerp_plugin/content/config.xul", "", "chrome"); window.open("chrome://openerp_plugin/content/config_change.xul", "", "chrome"); } @@ -144,7 +139,7 @@ function deleteDocument(){ document.getElementById("listObjectListBox").removeItemAt(document.getElementById("listObjectListBox").selectedIndex) } else{ - alert("No Document Selected"); + alert("Please Select Any One Document "); } } diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/create.xul b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/create.xul index d3d551d63e8..bfcfb40a544 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/create.xul +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/create.xul @@ -27,7 +27,7 @@ - + diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/plugin.xul b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/plugin.xul index 45c552452bb..ed064b3dfdd 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/plugin.xul +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/plugin.xul @@ -16,7 +16,7 @@ - + - - + @@ -54,7 +53,6 @@ -