diff --git a/addons/thunderbird/partner/partner.py b/addons/thunderbird/partner/partner.py
index 53050ec55a1..2269d0fa351 100644
--- a/addons/thunderbird/partner/partner.py
+++ b/addons/thunderbird/partner/partner.py
@@ -99,7 +99,7 @@ class thunderbird_partner(osv.osv_memory):
'mobile': dictcreate['mobile'],
'email': dictcreate['email'],
}
- address_obj.write(cr, user,res_id,result )
+ address_obj.write(cr, user,int(res_id),result )
return True
def create_partner(self,cr,user,vals):
diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi
index 4e0973e58e4..58b63dd50ce 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 8a64c9646f9..93a0d86fc7f 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/address.xul b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/address.xul
index 02700277d26..370683b0c4b 100644
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/address.xul
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/address.xul
@@ -90,7 +90,7 @@
-
+
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js
index 4bc4193fb70..f095010f03d 100755
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js
@@ -45,7 +45,7 @@ var myPrefObserver =
//set the initial value of name and email field of create contact window
createContact: function()
{
- //document.getElementById("txtselectpartner").value= getPartnerID();
+ //document.getElementById("txtselectpartner").value= getPartnerName();
document.getElementById("txtname").value= getSenderName();
document.getElementById("txtemail").value= getSenderEmail();
document.getElementById("country").value=getAllCountry();
@@ -93,6 +93,7 @@ var myPrefObserver =
createContactAddress: function()
{
+// getResourceId();
document.getElementById("txtname").value= getPartnerName();
document.getElementById("txtcontactname").value= getSenderName();
document.getElementById("txtstreet").value= getStreet();
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 2847638f756..87f8386b1cd 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
@@ -31,7 +31,7 @@
-
+
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js
index 1cc87dd7cb5..65bdd4040fd 100755
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js
@@ -1434,9 +1434,8 @@ function UpdateContact(){
strmethod.data = 'update_contact';
var strobj = xmlRpcClient.createType(xmlRpcClient.STRING,{});
strobj.data = 'thunderbird.partner';
- alert(getResourceId());
- var a = ['res_id','partner_id','name','street','street2','zip','city','country_id','state_id','phone','fax','mobile','email'];
- var b = [getResourceId(),getPartnerName(),getSenderName(),document.getElementById("txtstreet").value,document.getElementById("txtstreet2").value,document.getElementById("txtzip").value, document.getElementById("txtcity").value,document.getElementById("country").value,document.getElementById("state").value,document.getElementById("txtoffice").value,document.getElementById("txtfax").value,document.getElementById("txtmobile").value,getSenderEmail()];
+ var a = ['res_id','name','street','street2','zip','city','country_id','state_id','phone','fax','mobile','email'];
+ var b = [getResourceId(),getSenderName(),document.getElementById("txtstreet").value,document.getElementById("txtstreet2").value,document.getElementById("txtzip").value, document.getElementById("txtcity").value,document.getElementById("country").value,document.getElementById("state").value,document.getElementById("txtoffice").value,document.getElementById("txtfax").value,document.getElementById("txtmobile").value,getSenderEmail()];
var arrofarr = dictcontact(a,b);
xmlRpcClient.asyncCall(listUpdateContactHandler,null,'execute',[strDbName,struids,strpass,strobj,strmethod,arrofarr],6);
}
@@ -1446,19 +1445,7 @@ var listAttachHandler = {
onResult: function(client, context, result) {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess');
var createId = result.QueryInterface(Components.interfaces.nsISupportsPRInt32);
- /*if(createId){
- attach = getAttachment()
- if (attach_eml=="yes")
- {
- //alert("Mail Archived Successfully");
- }
- else if (attach_eml =="no" && attach =="yes")
- {
- alert("Mail Archived Successfully With Attachments");
- }
- //getPref().setCharPref("attachmentdata","")
- attach_eml="no"
- }*/
+
},
onFault: function (client, ctxt, fault) {
// alert('XML-RPC Fault: '+fault);