Skip to content

Commit efbb134

Browse files
author
Antoine Huret
authored
add comment in low level method Create
1 parent 62e35c5 commit efbb134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odoo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (c *Client) Create(model string, values []interface{}) ([]int64, error) {
227227
var args []interface{}
228228
if len(values) == 0 {
229229
return nil, nil
230-
} else if len(values) == 1 {
230+
} else if len(values) == 1 { // ensure it works with odoo 11 that doesn't allow to create multiple instances with one API call
231231
args = []interface{}{getValuesFromInterface(values[0])}
232232
} else {
233233
vv := make([]interface{}, len(values))

0 commit comments

Comments
 (0)