[FIX] Purchase :copy method was not setting stock moves to be null for PO lines
authorEDA(Axelor) <>
Fri, 21 Aug 2009 13:24:06 +0000 (18:54 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Fri, 21 Aug 2009 13:24:06 +0000 (18:54 +0530)
bzr revid: jvo@tinyerp.com-20090821132406-imb0eoyictenofcr

addons/purchase/purchase.py

index aae2b39..f5bb716 100644 (file)
@@ -455,7 +455,7 @@ class purchase_order_line(osv.osv):
     def copy_data(self, cr, uid, id, default=None,context={}):
         if not default:
             default = {}
-        default.update({'state':'draft', 'move_id':[]})
+        default.update({'state':'draft', 'move_ids':[]})
         return super(purchase_order_line, self).copy_data(cr, uid, id, default, context)
 
     def product_id_change(self, cr, uid, ids, pricelist, product, qty, uom,