[FIX] purchase: fifo price.yml + fix in action_assign (wrong uom qty conversion)
bzr revid: qdp-launchpad@openerp.com-20130906084409-ro0atvrcxh8b6nep
This commit is contained in:
@@ -190,7 +190,7 @@
|
||||
Process the reception of purchase order with usd
|
||||
-
|
||||
!python {model: stock.picking}: |
|
||||
pick_obj = self.pool.get('stock.picking').browse(cr, uid, ref("purchase_order_fifo_usd"))
|
||||
pick_obj = self.pool.get('purchase.order').browse(cr, uid, ref("purchase_order_fifo_usd")).picking_ids[0]
|
||||
pick_obj.do_partial(context=context)
|
||||
-
|
||||
We create delivery order of 49.5 kg
|
||||
|
||||
@@ -231,7 +231,6 @@ class stock_quant(osv.osv):
|
||||
result += self._quants_get_lifo(cr, uid, location, product, qty, domain, prefered_order=prefered_order, context=context)
|
||||
else:
|
||||
raise osv.except_osv(_('Error!'), _('Removal strategy %s not implemented.' % (removal_strategy,)))
|
||||
print 'Quant get result', result
|
||||
return result
|
||||
|
||||
#
|
||||
@@ -1441,7 +1440,7 @@ class stock_move(osv.osv):
|
||||
done.append(move.id)
|
||||
continue
|
||||
else:
|
||||
qty = uom_obj._compute_qty(cr, uid, move.product_uom.id, move.product_qty, move.product_id.uom_id.id)
|
||||
qty = move.product_qty
|
||||
dp = []
|
||||
for m2 in move.move_orig_ids:
|
||||
for q in m2.quant_ids:
|
||||
|
||||
Reference in New Issue
Block a user