Skip to Content
Menu
This question has been flagged
1 Reply
2962 Views

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.

Avatar
Discard
Author Best Answer

I founded the solutions after few days with the help of an external developer. So, we can skip/ignore this question.

Avatar
Discard