Sequence bugfixes
bzr revid: pinky-8e4a6e7cc0158e039cb1ffe52f418084f0d65782
This commit is contained in:
parent
acbbbb8368
commit
6c1f76d424
|
@ -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
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue