return (Object[]) models.execute(
EXECUTE_KW, asList(
odoDb, uid, odoPwd,
PURCHASE_ORDER, SEARCH_READ_NESTED,
asList(asList(asList(STATE_FILD_NAME,OPERATOR_EQ,PURCHASE_VALUE),asList(ID_FILD_NAME, OPERATOR_GR, String.valueOf(currentId))), map)));
private Map, Object> getParameters() {
Map, Object> map = new HashMap<>();
map.put(FIELDS, asList(
NAME, PARTNER_ID, PICKING_TYPE_ID,
DATE_APPROVE, DATE_PLANNED,
PRODUCT_ID, ORDER_LINE_QTY_RECEIVED,
ORDER_LINE_QTY_INVOICED, ORDER_LINE_PRICE_UNIT, ORDER_LINE_NAME, AMOUNT_UNTAXED,
AMOUNT_TOTAL, ORDER_LINE_PRODUCT_UOM, ORDER_LINE_PURCHASE_FORMAT,
ORDER_LINE_PRODUCT_VENDOR_CODE, ORDER_LINE_TAXES_ID_AMOUNT, ORDER_LINE_PRODUCT_QTY,
ORDER_LINE_PRODUCT_ID_BARCODE));
map.put(LIMIT, LIMIT_VALUE);
map.put("order", "id desc");
return map;
}