Package fr.inouk

Examples of fr.inouk.OpenERPJSONRPCClient.modelCallKW()


            values.put("name", userNames[i]);
            values.put("login", "user" + i + "@" + System.currentTimeMillis()); // timestamp for dirty runs
            values.put("new_password", "user" + i );
            args.put(values);
            System.out.print("Created " + values);
            Object response = server.modelCallKW("res.users", "create", args, null, null);
            Assert.assertTrue( response instanceof Integer, "res.users creation Failure");
            System.out.println(" with id = "+ response);
            i++;
        }
    }
View Full Code Here


        values.put("name", "Cyril MORISSE");
        values.put("login", "cmorisse@" + System.currentTimeMillis());
        values.put("new_password", "cmorisse");
        kwargs.put("values", values);

        Object response = server.modelCallKW("res.users", "create", null, kwargs, null);
        // We expect the id of the created user
        Assert.assertTrue( response instanceof Integer, "res.users creation Failure");
        System.out.println("res.users.create() => "+response);

    }
View Full Code Here

        values.put("name", "Cyril MORISSE");
        values.put("login", "cmorisse@" + System.currentTimeMillis());
        values.put("new_password", "cmorisse");
        args.put(values);

        Object response = server.modelCallKW("res.users", "create", args, null, null);
        // We expect the id of the created user
        Assert.assertTrue( response instanceof Integer, "res.users creation Failure");
        System.out.println("res.users.create() => "+response);

    }
View Full Code Here

        System.out.println("Sale module (before install)= " + moduleObject);
        Assert.assertEquals("uninstalled", (String) moduleObject.get("state"), "Sale module is already installed");

        // Second we install it and check new state is installed
        JSONArray args = new JSONArray("[[" + saleModuleId + "]]")// Notice that the argument we sent is an array !!
        Object objResult = server.modelCallKW("ir.module.module", "button_immediate_install", args, null, null);
        // Server returns us an ir.actions to open a menu. We can't process it.
        System.out.println("objResult = "+objResult);

        jsonResult = server.modelSearchRead("ir.module.module", fields, 0, 0, domain, null, null);
        moduleObject = (JSONObject) ((JSONArray) jsonResult.get("records")).get(0);
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.