I've created products(model product.template), using Odoo API but when I tried setting the product.template's id, Odoo didn't let me and set the id with a value generated by the system.
final Integer id = (Integer)models.execute("execute_kw", Arrays.asList(
db, uid, password,
"product.template", "create",
Arrays.asList(new HashMap() {{
put("is_published", true);
put("active", true);
put("x_standartization_level", article.getStandartizationLevel());
put("id", Integer.valueOf(article.getMfsIdentifier()));