[IMP] Improvement in thunderbird
bzr revid: ksa@tinyerp.co.in-20100804113641-7eoeh58p1ppwse3s
This commit is contained in:
parent
8f859de191
commit
2164b56e71
|
@ -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):
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -90,7 +90,7 @@
|
|||
<spacer width="54"/>
|
||||
<menulist id="country" width="190">
|
||||
<menupopup>
|
||||
<menuitem label="" value=""/>
|
||||
<menuitem label="" value="" />
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</hbox>
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<button label="&bsearch.label;" oncommand="searchCheckbox()" image="&imagesearch.value;" accesskey="s"/>
|
||||
</hbox>
|
||||
|
||||
<listbox height="250" id="listSearchBox" >
|
||||
<listbox height="250" id="listSearchBox" seltype="multiple">
|
||||
<listhead >
|
||||
<listheader label="&listSearchBox.header;"/>
|
||||
</listhead>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue