[FIX] puchase: We force the move lines to be empty for the new stock picking objects created by the system

bzr revid: stephane@openerp.com-20100709143107-84gv5aeerxzg8mxu
This commit is contained in:
Stephane Wirtel 2010-07-09 16:31:07 +02:00
parent 69b2e854f5
commit bf7ea7c249
1 changed files with 2 additions and 1 deletions

View File

@ -425,6 +425,7 @@ class purchase_order(osv.osv):
'invoice_state': istate,
'purchase_id': order.id,
'company_id': order.company_id.id,
'move_lines' : [],
})
todo_moves = []
for order_line in order.order_line:
@ -800,4 +801,4 @@ class procurement_order(osv.osv):
procurement_order()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: