[FIX] Avoid to copy the default move lines on the stock picking during
authorStephane Wirtel <stephane@openerp.com>
Thu, 8 Jul 2010 16:33:25 +0000 (18:33 +0200)
committerStephane Wirtel <stephane@openerp.com>
Thu, 8 Jul 2010 16:33:25 +0000 (18:33 +0200)
the creation of the picking by the system.

bzr revid: stephane@openerp.com-20100708163325-s0lxoxos9diey700

addons/purchase/purchase.py

index 79757c4..1faf4fb 100644 (file)
@@ -392,6 +392,7 @@ class purchase_order(osv.osv):
                 'address_id': order.dest_address_id.id or order.partner_address_id.id,
                 'invoice_state': istate,
                 'purchase_id': order.id,
+                'move_lines' : [],
             })
             todo_moves = []
             for order_line in order.order_line: