Hi , I want a new method which will update the customer total receivables (guess by creating the corresponding account.move objects) which has to be called via xml-rpc . Is there anything more to be done than making this method public and using XML RPC to invoke this method in the right resource with the right params . When I tried to do it ,it gave an error saying parameters not matching (expected min 5 but got only 4) My definition is something like -
def update_customer_receivables(self, cr, uid, partner_id,amount,context=None):
And my java client looks something like this :
Object args1[]={"partner_id","=",patientId};
Object args2[]={"amount","=",amount};
Vector params = new Vector();
params.addElement(args1);
params.addElement(args2);
And the call :
Object args[]={database,id,password,resource,"update_customer_receivables",params};
xmlRpcClient().execute("execute", args)
What am I missing ? Any help is appreciated