Examples of modelLoad()


Examples of fr.inouk.OpenERPJSONRPCClient.modelLoad()

    @Test(groups = {"dataset_service"}, dependsOnMethods = {"searchRead_Paginated"})
    public void modelLoad() {
        OpenERPJSONRPCClient server = new OpenERPJSONRPCClient(SERVER_URL+":"+SERVER_PORT);
        JSONObject sessionInfo = server.sessionAuthenticate("openerp_jsonrpc_client", "admin", "admin", null, null);
        // res.users, all fields, all objects(no domain), no sort, no context
        JSONObject object = server.modelLoad("res.users", 1 , null);
        System.out.println(object);
    }

    @Test(groups = {"dataset_service_callkw"}, dependsOnGroups = {"dataset_service"})
    public void callkw_create_using_kwargs() {
View Full Code Here

Examples of fr.inouk.OpenERPJSONRPCClient.modelLoad()

        // 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");
        System.out.println("Sale Order state = " + orderObjectState);
        Assert.assertEquals("manual", orderObjectState, "Exec Wrokflow failed.");
    }
}
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.