[IMP]:Improvement message detail

bzr revid: ksa@tinyerp.co.in-20100920075813-jevp6wdw88dmd6q5
This commit is contained in:
ksa (Open ERP) 2010-09-20 13:28:13 +05:30
parent d60336d76d
commit e9b4fe8806
4 changed files with 21 additions and 4 deletions

View File

@ -158,6 +158,7 @@ class thunderbird_partner(osv.osv_memory):
msg_pool = self.pool.get('mailgate.message')
msg_ids = msg_pool.search(cr, uid, [('message_id','=',message_id)])
res = {}
res_ids = []
if msg_ids and len(msg_ids):
return 0
@ -170,7 +171,8 @@ class thunderbird_partner(osv.osv_memory):
if model_data:
res_id = int(model_data[0])
server_tools_pool.history_message(cr, uid, model, res_id, msg_new)
return True
res_ids.append(res_id)
return len(res_ids)
def process_email(self, cr, uid, vals):
dictcreate = dict(vals)

View File

@ -1392,7 +1392,22 @@ var listArchiveHandler = {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess');
list_documents = document.getElementById('listSearchBox')
var createId = result.QueryInterface(Components.interfaces.nsISupportsPRInt32);
alert("Mail is Already Archived Successfully.")
createId = parseInt(createId);
if(createId==0)
{
alert("Mail is Already Archived Successfully.");
}
else if (createId<0)
{
alert("sorry Mail is not Archived to" +" " + ":" + " "+ list_documents.value);
}
else if (createId>=1)
{
alert("Mail Archived Successfully to" +" " + ":" + " "+ list_documents.value);
}
window.close();
},
onFault: function (client, ctxt, fault) {
@ -1471,8 +1486,8 @@ function upload_archivemail()
var arrofarr = dictcontact(a,b);
xmlRpcClient.asyncCall(listArchiveHandler,null,'execute',[strDbName,struids,strpass,strobj,strmethod,arrofarr],6);
alert("Mail Archived Successfully to" +" " + ":" + " "+ list_documents.value);
window.close();
// alert("Mail Archived Successfully to" +" " + ":" + " "+ list_documents.value);
//window.close();
}