Skip to content

Commit

Permalink
add comment in low level method Create
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuret authored Apr 13, 2023
1 parent 62e35c5 commit efbb134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (c *Client) Create(model string, values []interface{}) ([]int64, error) {
var args []interface{}
if len(values) == 0 {
return nil, nil
} else if len(values) == 1 {
} else if len(values) == 1 { // ensure it works with odoo 11 that doesn't allow to create multiple instances with one API call
args = []interface{}{getValuesFromInterface(values[0])}
} else {
vv := make([]interface{}, len(values))
Expand Down

0 comments on commit efbb134

Please sign in to comment.