[IMP] : Improvement usability

bzr revid: ksa@tinyerp.co.in-20100820114735-fk2aix1jg9jrowo4
This commit is contained in:
ksa (Open ERP)
2010-08-20 17:17:35 +05:30
parent b6823b2560
commit 52317cfabb
4 changed files with 7 additions and 5 deletions
Binary file not shown.
@@ -242,6 +242,7 @@ function open_contact()
}
//function to open the configuration window
var Config = {
onLoad: function() {
@@ -297,9 +298,10 @@ var Select = {
this.initialized=true;
},
onMenuItemCommand: function(){
window.open("chrome://openerp_plugin/content/selectpartner.xul", "", "chrome");
}
onMenuItemCommand: function(){
//document.getElementById("txtselectpartner").value="";
window.open("chrome://openerp_plugin/content/selectpartner.xul", "", "chrome");
}
};
var CreatePartner = {
@@ -1265,7 +1265,7 @@ function searchContact()
var strmethod = xmlRpcClient.createType(xmlRpcClient.STRING,{});
strmethod.data = 'search_contact';
var strname = xmlRpcClient.createType(xmlRpcClient.STRING,{});
strname.data =getSenderEmail();
strname.data = getSenderEmail();
xmlRpcClient.asyncCall(listSearchContactHandler,cmbSearchList,'execute',[ strDbName,struid,strpass,strobj,strmethod,strname ],6);
}
@@ -1535,7 +1535,7 @@ function createContact(){
var strobj = xmlRpcClient.createType(xmlRpcClient.STRING,{});
strobj.data = 'thunderbird.partner';
var a = ['partner_id','name','street','street2','zip','city','country_id','state_id','phone','fax','mobile','email'];
var b = [getPartnerId(),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,document.getElementById("txtemail").value];
var b = [getPartnerId(),document.getElementById("txtname").value,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,document.getElementById("txtemail").value];
var arrofarr = dictcontact(a,b);
xmlRpcClient.asyncCall(listCreateContactHandler,null,'execute',[strDbName,struids,strpass,strobj,strmethod,arrofarr],6);
}