Skip to content

Commit c9a1dc4

Browse files
author
Kasim Rangwala
committed
[IMP] user can pass json serializable object to create & write method.
1 parent dd22292 commit c9a1dc4

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/io/gripxtech/odoojsonrpcclient/core

1 file changed

+2
-2
lines changed

app/src/main/java/io/gripxtech/odoojsonrpcclient/core/Odoo.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ object Odoo {
358358

359359
fun create(
360360
model: String,
361-
values: Map<String, Any>,
361+
values: Any,
362362
kwArgs: Map<String, Any> = mapOf(),
363363
context: JsonObject = user.context,
364364
callback: ResponseObserver<Create>.() -> Unit
@@ -442,7 +442,7 @@ object Odoo {
442442
fun write(
443443
model: String,
444444
ids: List<Int>,
445-
values: Map<String, Any>,
445+
values: Any,
446446
kwArgs: Map<String, Any> = mapOf(),
447447
context: JsonObject = user.context,
448448
callback: ResponseObserver<Write>.() -> Unit

0 commit comments

Comments
 (0)