Sequence bugfixes
authorpinky <>
Mon, 18 Dec 2006 12:25:45 +0000 (12:25 +0000)
committerpinky <>
Mon, 18 Dec 2006 12:25:45 +0000 (12:25 +0000)
bzr revid: pinky-8e4a6e7cc0158e039cb1ffe52f418084f0d65782

addons/stock/stock.py
addons/stock/wizard/wizard_partial_picking.py

index 733679d..ec68207 100644 (file)
@@ -356,6 +356,7 @@ class stock_picking(osv.osv):
        }
 
        def action_confirm(self, cr, uid, ids, *args):
+               print 'Confirmed', ids
                self.write(cr, uid, ids, {'state': 'confirmed'})
                todo = []
                for picking in self.browse(cr, uid, ids):
@@ -671,6 +672,7 @@ class stock_move(osv.osv):
                return {'value':result}
 
        def action_confirm(self, cr, uid, ids, context={}):
+               print 'Confirmed state', ids
                self.write(cr, uid, ids, {'state':'confirmed'})
                return True
 
index 7407b88..bc6704f 100644 (file)
@@ -90,6 +90,10 @@ def _do_split(self, cr, uid, data, context):
                        too_few.append(move)
                else:
                        too_many.append(move)
+
+               #
+               # Average price computation
+               #
                if (pick.type == 'in') and (move.product_id.cost_method == 'average'):
                        product_obj = pooler.get_pool(cr.dbname).get('product.product')
                        currency_obj = pooler.get_pool(cr.dbname).get('res.currency')