[FIX] Stock : Cancelled move lines should not be allowed for Invoice creation
lp bug: https://launchpad.net/bugs/638385 fixed bzr revid: jvo@tinyerp.com-20101012202656-o67bt1v2x0xy43uh
This commit is contained in:
committed by
Jay (OpenERP)
parent
e61f615c7b
commit
a2bd94fb41
@@ -980,6 +980,8 @@ class stock_picking(osv.osv):
|
||||
invoices_group[partner.id] = invoice_id
|
||||
res[picking.id] = invoice_id
|
||||
for move_line in picking.move_lines:
|
||||
if move_line.state == 'cancel':
|
||||
continue
|
||||
origin = move_line.picking_id.name or ''
|
||||
if move_line.picking_id.origin:
|
||||
origin += ':' + move_line.picking_id.origin
|
||||
|
||||
Reference in New Issue
Block a user