Hello all,
When we confirm a pos order, the generated picking and the stock moves are automatically proceeded.
What would be the best approach to make the same thing with a sale order?
I want that all picking and stock moves created by a sale order confirmation be automatically proceeded.
thanks to guide me.
UPDATE #1
In the class pos_order, there is a create_picking method.
At the end of this create_picking method, there are those lines who confirm the picking and moves :
if picking_id:
picking_obj.action_confirm(cr, uid, [picking_id], context=context)
picking_obj.force_assign(cr, uid, [picking_id], context=context)
picking_obj.action_done(cr, uid, [picking_id], context=context)
elif move_list:
move_obj.action_confirm(cr, uid, move_list, context=context)
move_obj.force_assign(cr, uid, move_list, context=context)
move_obj.action_done(cr, uid, move_list, context=context)
I'm searching the best place to do the same with a regular sale_order.
I'm curious about the business scenario that requires this, and why POS can't be used to handle the order.