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 create workFlow using java code to send Trigger that stage was changed

on 1/18/15, 7:43 PM 738 views

Hi team,

Can you help me in create workFlow for crm.lead module

Requirement is to Change Stage of Lead to 'Pending Application" to trigger email workflow to new contact

I just coded to a level

ObjectAdapter objectAdOrder = openERPSession.getObjectAdapter("crm.lead");
String[] NewTuple = new String[]{"partner_id", "name", "email_from"};

Row newObject = objectAdOrder.getNewRow(NewTuple);

newObject.put("partner_id", "1"); newObject.put("name", "chandan"); newObject.put("email_from", "chandan.singh@bizruntime.com"); objectAdOrder.createObject(newObject); System.out.println("under process.."); objectAdOrder.executeWorkflow(newObject, "order_confirm"); System.out.println("worlflowExecuted");

but I am getting error as Could not find signal with name 'order_confirm' for object 'crm.lead'

so can you please explain how to find signal for crm.lead module to pass in executeWorkflow.


i dont know the ans... but i need to know one thing....y are u using java code instead of python...

on 1/19/15, 12:48 AM

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: 1/18/15, 7:43 PM
Seen: 738 times
Last updated: 3/16/15, 8:10 AM