Skip to content

Commit 5c8289c

Browse files
committed
CreateVals::Multi should be a Vec<Value>
1 parent 2a7dbaf commit 5c8289c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

odoo-api/src/service/orm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub struct Create {
9090
#[serde(untagged)]
9191
pub enum CreateVals {
9292
One(Map<String, Value>),
93-
Multi(Vec<Map<String, Value>>)
93+
Multi(Vec<Value>)
9494
}
9595

9696
impl From<Map<String, Value>> for CreateVals {
@@ -99,8 +99,8 @@ impl From<Map<String, Value>> for CreateVals {
9999
}
100100
}
101101

102-
impl From<Vec<Map<String, Value>>> for CreateVals {
103-
fn from(value: Vec<Map<String, Value>>) -> Self {
102+
impl From<Vec<Value>> for CreateVals {
103+
fn from(value: Vec<Value>) -> Self {
104104
Self::Multi(value)
105105
}
106106
}

0 commit comments

Comments
 (0)