Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
327 stars 374 forks source link

maximum recursion depth exceeded in cmp #321

Open 1Androider opened 7 years ago

1Androider commented 7 years ago

0 = {HashMap$HashMapEntry@4986} "write_date" -> "2017-04-14 07:02:12" 1 = {HashMap$HashMapEntry@4987} "name" -> "Documents" 2 = {HashMap$HashMapEntry@4988} "user_id" -> "6" 3 = {HashMap$HashMapEntry@4989} "parent_id" -> "false"

` @Override protected Boolean doInBackground(String... strings) { boolean success = false; if (app.inNetwork()) {

            String id = record.getString("id");
            ORecordValues rvalue = new ORecordValues();
            rvalue.put("name", dvalues.getString("name"));
            rvalue.put("parent_id", dvalues.getString("parent_id"));
            rvalue.put("user_id", dvalues.getString("user_id"));
            rvalue.put("write_date", ODateUtils.getUTCDate());

            if (mOdoo != null) {
                OdooResult result = mOdoo.withRetryPolicy(OConstants.RPC_REQUEST_TIME_OUT, OConstants.RPC_REQUEST_RETRIES).updateRecord(mModel.getModelName(), rvalue, Integer.parseInt(id));

                if (result != null && !result.getRecords().isEmpty()) {
                    for (OdooRecord record : result.getRecords()) {
                        items.add(OdooRecordUtils.toDataRow(record));
                    }
                    Directory.update(record.getInt(OColumn.ROW_ID), dvalues);
                    success = true;
                } else {
                    success = false;
                }
            }
        }
        return success;
    }`

getting error result from the response of this line OdooResult result = mOdoo.withRetryPolicy(OConstants.RPC_REQUEST_TIME_OUT, OConstants.RPC_REQUEST_RETRIES).updateRecord(mModel.getModelName(), rvalue, Integer.parseInt(id));

can anyone help to resolve ?