MCPcopy Create free account
hub / github.com/Odoo-mobile/framework / create

Method create

src/com/odoo/orm/OEHelper.java:473–487  ·  view source on GitHub ↗
(OEValues values)

Source from the content-addressed store, hash-verified

471 }
472
473 public Integer create(OEValues values) {
474 Log.d(TAG, "OEHelper->create()");
475 Integer newId = null;
476 try {
477 JSONObject result = mOdoo.createNew(mDatabase.getModelName(),
478 generateArguments(values));
479 newId = result.getInt("result");
480 values.put("id", newId);
481 mDatabase.create(values);
482 return newId;
483 } catch (Exception e) {
484 e.printStackTrace();
485 }
486 return newId;
487 }
488
489 public Boolean update(OEValues values, Integer id) {
490 Log.d(TAG, "OEHelper->update()");

Callers 11

updateAttachmentsMethod · 0.95
doInBackgroundMethod · 0.45
generateLayoutMethod · 0.45
inputPasswordDialogMethod · 0.45
logoutConfirmDialogMethod · 0.45
deleteAccountMethod · 0.45
isModelInstalledMethod · 0.45
showRateDialogMethod · 0.45
createTokenTextViewMethod · 0.45

Calls 4

generateArgumentsMethod · 0.95
getModelNameMethod · 0.65
getIntMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected