Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to Convert Lead2 Oppertunity

on 3/12/15, 3:18 AM 242 views



I am not able to Trigger the Lead2Convert Button in OpenERP using java Code


Till now I was triyed this,

ObjectAdapter applicantAd1 = openERPSession.getObjectAdapter("crm.lead2opportunity.partner");
                ObjectAdapter applicantAd = openERPSession.getObjectAdapter("crm.lead");

                Row newPartner1 = applicantAd1.getNewRow(new String[]{"action","id","name","partner_id","opportunity_ids"});
                //newPartner1.put("name", "convert");
                //newPartner1.put("opportunity_ids", 3948);
                newPartner1.put("partner_id", 14);
                newPartner1.put("action", "create");
                //newPartner1.put("id", 14);


                //newPartner1.putMany2ManyValue("opportunity_ids",new Object[]{3},false);

                //newPartner1.put("id", 3);

        //    applicantAd1.writeObject(newPartner1, false);
            //applicantAd1.executeWorkflow(newPartner1, "name");
    //applicantAd1.writeObject(newPartner1, true);
                System.out.println("Oppertunity updated");




can anyOne know how i can do this in java code

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 3/12/15, 3:18 AM
Seen: 242 times
Last updated: 3/16/15, 8:10 AM