Examples of modelExecWorkflow()


Examples of fr.inouk.OpenERPJSONRPCClient.modelExecWorkflow()

         */
        OpenERPJSONRPCClient server = new OpenERPJSONRPCClient(SERVER_URL+":"+SERVER_PORT);
        JSONObject sessionInfo = server.sessionAuthenticate("openerp_jsonrpc_client", "admin", "admin", null, null);

        // We send the signal "order_confirm" to the sale.order workflow on object 1
        Object oResult = server.modelExecWorkflow("sale.order", 1, "order_confirm", null);
        System.out.println("oResult = " + oResult);

        // We check sale order state
        JSONObject orderObject = server.modelLoad("sale.order", 1, null);
        String orderObjectState = (String) ((JSONObject)orderObject.get("value")).get("state");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.