I am using odoo 11.
I have a php script in which I try to perform a execute_kw write method on sale.order. Following is the code I am using.
$models->execute_kw($db, $uid, $password, 'sale.order', 'write',
array(array(686),array(
'state'=>'sale',
'confirmation_date' => '2018-12-14 11:53:00'
));.
But when I hit this api. It throws error: -
TypeError: 'int' object is not iterable
When I print vals on confirm order, It was showing value as 686 and dictionary is not passing there. Has anybody work on php write method to write specifically on sale.order when I have to confirm sale order?
Note: - Except sale.order, I can write on all other tables, like res.partner and no error is coming there.