Я создал продукты (модель product.template), используя Odoo API, но когда я попытался установить идентификатор product.template, Odoo не разрешил мне и установил id со значением, сгенерированным системой.
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()));