Skip to content

Commit e356fdf

Browse files
committed
more infos on README
1 parent 0e17323 commit e356fdf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ Add those jar files to your classpath and you should be ok.
4040

4141
## Context manipulation
4242

43-
Values must be passed as string
43+
Values must cast in correct forma
4444

4545
```
4646
Map inputMap = new java.util.HashMap();
47-
inputMap.put("active_id", move_id.toString());
47+
inputMap.put("active_id", Integer.valueOf(move_id.toString()));
48+
inputMap.put("active_ids", new Object[]{ Integer.valueOf(move_id.toString()) } );
4849
openERPSession.getContext().putAll(inputMap);
4950
```
5051

0 commit comments

Comments
 (0)