diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi
index 45d4588c9a3..4a13ed76bef 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 f29fe7424f9..cca4c5164bc 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..3e5cadca020 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
@@ -3,7 +3,8 @@
+ title="&title.label;" onload="myPrefObserver.createContactAddress()" height="380" width="800">
+
@@ -11,16 +12,21 @@
+
+ &emailid.value;
+
+
+
+
+
&name.value;
-
+
+
+
-
- &contactname.value;
-
-
-
+
@@ -30,64 +36,63 @@
- &street.value;
-
-
+ &contactname.value;
+
+
&office.value;
+
-
- &street2.value;
-
-
+ &street.value;
+
+
- &fax.value;
-
+ &mobile.value;
+
+
+
+
+
+
+
+
+ &street2.value;
+
+
+
+
+ &fax.value;
+
-
- &zip.value;
-
-
-
-
- &mobile.value;
-
-
-
-
-
-
-
- &city.value;
-
-
-
-
- &email.value;
-
-
-
-
-
+ &zip.value;
+
+
+
+
+ &city.value;
+
+
+
+
-
+
@@ -97,7 +102,7 @@
-
+
@@ -105,11 +110,16 @@
+
+
-
+
+
+
+
+
-
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.xul b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.xul
index e577728f2f3..e6fb8fab211 100755
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.xul
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.xul
@@ -41,8 +41,8 @@
-
-
+
+
@@ -107,8 +107,7 @@
-
+
-
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/overlay.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/overlay.js
index bd9a8e88c22..0f34f60910f 100755
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/overlay.js
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/overlay.js
@@ -285,7 +285,7 @@ var Address = {
},
onMenuItemCommand: function(){
- open_contact();
+ open_contact();
searchContact();
}
};
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..648f2488919 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
@@ -20,7 +20,7 @@
-
+
@@ -28,9 +28,12 @@
-
+
-
+
+
+ Documents
+
@@ -41,7 +44,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 a9aeea5b7dd..5de102dc73a 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
@@ -986,6 +986,81 @@ var listSearchContactHandler = {
}
}
+var listSearchContactdetailHandler = {
+ onResult: function(client, context, result) {
+ netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess');
+ var arrIdList = result.QueryInterface(Components.interfaces.nsISupportsArray);
+ var count = arrIdList.Count();
+ for (i = 0; i < count; i++) {
+ var strlResult = arrIdList.QueryElementAt(i, Components.interfaces.nsISupportsArray);
+ var strlSearchResult = strlResult.QueryElementAt(0, Components.interfaces.nsISupportsCString);
+ var strlSearchResultValue = strlResult.QueryElementAt(1, Components.interfaces.nsISupportsCString);
+ if(strlSearchResult=="partner_name"){
+ document.getElementById("txtname").value =strlSearchResultValue;}
+
+ if(strlSearchResult=="contactname"){
+ document.getElementById("txtcontactname").value =strlSearchResultValue;}
+
+ if(strlSearchResult=="street"){
+ document.getElementById("txtstreet").value =strlSearchResultValue;}
+
+ if(strlSearchResult=="street2"){
+ document.getElementById("txtstreet2").value =strlSearchResultValue;}
+ if(strlSearchResult=="zip"){
+ document.getElementById("txtzip").value =strlSearchResultValue;}
+
+ if(strlSearchResult=="city"){
+ document.getElementById("txtcity").value =strlSearchResultValue;}
+ if(strlSearchResult=="phone"){
+ document.getElementById("txtoffice").value =strlSearchResultValue;}
+
+ if(strlSearchResult=="fax"){
+ document.getElementById("txtfax").value =strlSearchResultValue;}
+
+ if(strlSearchResult=="mobile"){
+ document.getElementById("txtmobile").value =strlSearchResultValue;}
+
+ if(strlSearchResult=="email"){
+ document.getElementById("txtemail").value =strlSearchResultValue;}
+ if(strlSearchResult=="email"){
+ document.getElementById("txtemailid").value =strlSearchResultValue;}
+
+ }
+ },
+ onFault: function (client, ctxt, fault) {
+
+ },
+
+ onError: function (client, ctxt, status, errorMsg) {
+
+ }
+
+}
+
+function searchContactdetail()
+{
+ var branchobj = getPref();
+ setServerService('xmlrpc/object');
+ netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess');
+ arrFinalList = [];
+ var xmlRpcClient = getXmlRpc();
+ var cmbSearchList = document.getElementById('listSearchBox');
+ var strDbName = xmlRpcClient.createType(xmlRpcClient.STRING,{});
+ strDbName.data = branchobj.getCharPref("serverdbname");
+ var struid = xmlRpcClient.createType(xmlRpcClient.INT,{});
+ struid.data = branchobj.getIntPref('userid');
+ var strpass = xmlRpcClient.createType(xmlRpcClient.STRING,{});
+ strpass.data = branchobj.getCharPref("password");
+ var strobj = xmlRpcClient.createType(xmlRpcClient.STRING,{});
+ strobj.data = 'thunderbird.partner';
+ var strmethod = xmlRpcClient.createType(xmlRpcClient.STRING,{});
+ strmethod.data = 'search_contact';
+ var strname = xmlRpcClient.createType(xmlRpcClient.STRING,{});
+ var t = document.getElementById("txtemail").value
+ strname.data =document.getElementById("txtemail").value;
+ xmlRpcClient.asyncCall(listSearchContactdetailHandler,cmbSearchList,'execute',[ strDbName,struid,strpass,strobj,strmethod,strname ],6);
+}
+
//xmlrpc request handler for getting the search results for the particular selected check box object
var listSearchCheckboxHandler = {
onResult: function(client, context, result) {
@@ -1582,6 +1657,7 @@ var listLoginHandler = {
login = result.QueryInterface(Components.interfaces.nsISupportsPRInt32)
setUserId(login.data);
alert('Successful Login To OpenERP');
+ window.close();
}
else{
alert("Login Failed");
@@ -1600,7 +1676,7 @@ var listLoginHandler = {
function testConnection(){
if (getconnect_server() == "false")
{
- alert("Please Login To The Database First !")
+ alert("No Server Running..."+" "+getServer())
return false;
}
if (getDBList()=="false")
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/address.dtd b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/address.dtd
index 983f14dca12..3b5b95e2a32 100644
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/address.dtd
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/address.dtd
@@ -11,9 +11,16 @@
+
+
+
+
+
+
+
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/config.dtd b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/config.dtd
index 037e0b9219d..8134c113ef9 100755
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/config.dtd
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/config.dtd
@@ -3,7 +3,7 @@
-
+
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/plugin.dtd b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/plugin.dtd
index 279294365a3..ed26728b0d0 100644
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/plugin.dtd
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/locale/en-US/plugin.dtd
@@ -3,7 +3,7 @@
-
+