I have a method which accepts an OValue:
getResults(OValues values)
Inside the method are the ff.
ORecordValues value = new ORecordValues();
value.put("order_partner_id", orderline.getPartner(values));
value.put("product_id", orderline.getProduct(values));
value.put("product_uom_qty",values.getInt("product_uom_qty"));
value.put("price_unit", values.getInt("product_uom_qty"));
value.put("discount",values.getInt("product_uom_qty"));
orderline.getServerDataHelper().createOnServer(value);
Is it possible to insert directly to Odoo's server without saving it to android's database? or any alternative ways to successfully insert data to Odoo server?
In ServerDataHelper java class:
public int createOnServer(ORecordValues data) {
OdooResult result = mOdoo.createRecord(mModel.getModelName(), data);
return result.getInt("result");
}