/*
   * Creates a record
   */
  @Override
  protected Long doInBackground(PedidoLinea... values) {
    loadConnection();
    for (int i = 0; i < values.length; i++) {
      PedidoLinea pl = values[i];
      ArrayList<Integer> vals = new ArrayList<Integer>();
      vals.add(pl.getId());
      // oc.call(this.modelStockPicking, "action_move", vals);
      oc.call(this.modelStockPicking, "action_done", vals);
    }

    return new Long(1);
  }
  @Override
  public View getChildView(
      int groupPosition,
      int childPosition,
      boolean isLastChild,
      View convertView,
      ViewGroup parent) {
    final PedidoLinea childText = (PedidoLinea) getChild(groupPosition, childPosition);

    if (convertView == null) {
      LayoutInflater infalInflater =
          (LayoutInflater) this.context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      convertView = infalInflater.inflate(R.layout.listitem_lp2, null);
    }

    TextView dim = (TextView) convertView.findViewById(R.id.dimensionVal);

    dim.setText((String) childText.getDimension()[1]);
    return convertView;
  }