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):
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?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/8/14, 8:39 AM|
|Seen: 713 times|
|Last updated: 3/16/15, 8:10 AM|