[IMP]:improve the code
bzr revid: ksa@tinyerp.com-20111109124535-007u96rruh7ozkjf
This commit is contained in:
parent
209e13d816
commit
545cfadbc7
|
@ -136,12 +136,11 @@ class stock_picking(osv.osv):
|
|||
|
||||
for picking in picking_obj.browse(cursor, user, picking_ids,
|
||||
context=context):
|
||||
sale_lines = picking.sale_id.order_line
|
||||
invoice_created = invoices[result[picking.id]]
|
||||
if not picking.sale_id:
|
||||
continue
|
||||
else:
|
||||
invoice_obj.write(cursor, user, [invoice_created.id], {'user_id': picking.sale_id and picking.sale_id.user_id and picking.sale_id.user_id.id or False}, context=context)
|
||||
sale_lines = picking.sale_id.order_line
|
||||
invoice_created = invoices[result[picking.id]]
|
||||
invoice_obj.write(cursor, user, [invoice_created.id], {'user_id': picking.sale_id and picking.sale_id.user_id and picking.sale_id.user_id.id or False}, context=context)
|
||||
|
||||
for inv in invoice_obj.browse(cursor, user, [invoice_created.id], context=context):
|
||||
if not inv.fiscal_position:
|
||||
|
|
Loading…
Reference in New Issue