Skip to content

Commit

Permalink
Merge pull request #3 from ThomasNucleus/patch-1
Browse files Browse the repository at this point in the history
Fix write function implementation
  • Loading branch information
robroypt authored May 23, 2018
2 parents 68dc949 + 38c1778 commit b944b17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ public function create($model, $data)
* Update model(s)
*
* @param string $model Model
* @param array $id Model id to update
* @param array $ids Model ids to update
* @param array $fields A associative array (format: ['field' => 'value'])
*
* @return array
*/
public function write($model, $id, $fields)
public function write($model, $ids, $fields)
{
$response = $this->getClient('object')->execute_kw(
$this->database,
Expand All @@ -239,7 +239,7 @@ public function write($model, $id, $fields)
$model,
'write',
[
[$id],
$ids,
$fields
]
);
Expand Down

0 comments on commit b944b17

Please sign in to comment.