Hello,
i am working on a module to set the status of a delivery order based on a csv input.
I am using this code where delivery ID is the id of a specific delivery order:
picking_pool = self.pool.get('stock.picking.out')
for delivery_order in picking_pool.browse(cr, uid, delivery_id):
delivery_order.action_process()
self.pool.get('activity.log').create_log(cr, uid, "delivery order: %s" % (delivery_order.name))
the script, if triggered, runs without any error, but the delivery order is not changed to delivered. Any ideas what's wrong?
Thanks
Peter