I want to set delivery order state to done
from PHP via xmlrpc, so I'm trying it like this,
$write = $client->write('stock.picking', array(23), ["state" =>"done"]);
Using this method works to set any other parameter, but it does not set state to done
Can you see what I'm doing wrong here or what is the proper way to set it done
You are not allow to write state field in stock.picking , because state field is calculative store field in stock.picking model odoo.
You must update state field of stock.move, odoo will automatically change state of stock.picking.
You can follow below odoo code.
picking.move_lines.write({'state':'done'})
This may help you.