Examples of sessionAuthenticate()


Examples of fr.inouk.OpenERPJSONRPCClient.sessionAuthenticate()


    @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);
    }
View Full Code Here

Examples of fr.inouk.OpenERPJSONRPCClient.sessionAuthenticate()

    public void callkw_create_using_kwargs() {
        /**
         * We use CallKW to create a user using kwargs (keyword arguments)
         */
        OpenERPJSONRPCClient server = new OpenERPJSONRPCClient(SERVER_URL+":"+SERVER_PORT);
        JSONObject sessionInfo = server.sessionAuthenticate("openerp_jsonrpc_client", "admin", "admin", null, null);

        JSONObject kwargs = new JSONObject();

        JSONObject values = new JSONObject();
        values.put("name", "Cyril MORISSE");
View Full Code Here

Examples of fr.inouk.OpenERPJSONRPCClient.sessionAuthenticate()

    public void callkw_create_using_args() {
        /**
         * We use CallKW to create a user using args (positional arguments)
         */
        OpenERPJSONRPCClient server = new OpenERPJSONRPCClient(SERVER_URL+":"+SERVER_PORT);
        JSONObject sessionInfo = server.sessionAuthenticate("openerp_jsonrpc_client", "admin", "admin", null, null);

        JSONArray args = new JSONArray();

        JSONObject values = new JSONObject();
        values.put("name", "Cyril MORISSE");
View Full Code Here

Examples of fr.inouk.OpenERPJSONRPCClient.sessionAuthenticate()

    @Test(groups = {"dataset_service_workflow"}, dependsOnGroups = "dataset_service_callkw")
    public void installSaleModule() {
        System.out.println("Installing Sale module (Remember database has been created with demo data).");

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

        // First we search for sale module id
        JSONArray domain = new JSONArray("[['name','=','sale']]");
        String[] fields = { "name", "state"};
        JSONObject jsonResult = server.modelSearchRead("ir.module.module", fields, 0, 0, domain, null, null);
View Full Code Here

Examples of fr.inouk.OpenERPJSONRPCClient.sessionAuthenticate()

         * But since we have just installed Sale module on a fresh database, we can:
         *   -confirm sale_order 1
         *   -check her state changed to 'manual'
         */
        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);

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.