[REF] stock: Rewrite the object.
authoruco (OpenERP) <uco@tinyerp.com>
Wed, 13 Oct 2010 07:02:20 +0000 (12:32 +0530)
committeruco (OpenERP) <uco@tinyerp.com>
Wed, 13 Oct 2010 07:02:20 +0000 (12:32 +0530)
bzr revid: uco@tinyerp.com-20101013070220-jbg3878w7mak1fda

addons/stock/stock.py

index bd70128..19967e1 100644 (file)
@@ -1689,7 +1689,7 @@ class stock_move(osv.osv):
         def create_chained_picking(self, cr, uid, moves, context=None):
             new_moves = []
             res_obj = self.pool.get('res.company')
-            picking_obj = self.pool.get('stock.picking')
+            move_obj = self.pool.get('stock.move')
             if context is None:
                 context = {}
             for picking, todo in self._chain_compute(cr, uid, moves, context=context).items():