Sequence bugfixes

bzr revid: pinky-8e4a6e7cc0158e039cb1ffe52f418084f0d65782
This commit is contained in:
pinky 2006-12-18 12:25:45 +00:00
parent acbbbb8368
commit 6c1f76d424
2 changed files with 6 additions and 0 deletions

View 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

View 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')