Odoo Help


How to Convert Lead2 Oppertunity

on 3/12/15, 3:18 AM 455 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

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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