[FIX] point_of_sale: if pickings are split because the sale order is not complete, invoices could not be created
bzr revid: olt@tinyerp.com-20090706090146-qvr1xjzop69iwsw1
This commit is contained in:
@@ -322,7 +322,10 @@ class pos_order(osv.osv):
|
||||
self.write(cr, uid, [order.id], {'last_out_picking': picking_id})
|
||||
else:
|
||||
picking_id = order.last_out_picking.id
|
||||
picking_obj.write(cr, uid, [picking_id], {'auto_picking': True})
|
||||
picking_obj.write(cr, uid, [picking_id], {
|
||||
'auto_picking': True,
|
||||
'invoice_state': '2binvoiced',
|
||||
})
|
||||
picking = picking_obj.browse(cr, uid, [picking_id], context)[0]
|
||||
new = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user