projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aca409
)
[FIX] Theoretical quantity for created inventory adjustment should take into account...
author
Josse Colpaert
<jco@odoo.com>
Fri, 12 Sep 2014 14:31:45 +0000
(16:31 +0200)
committer
Josse Colpaert
<jco@odoo.com>
Wed, 17 Sep 2014 19:41:41 +0000
(21:41 +0200)
addons/stock/wizard/stock_change_product_qty.py
patch
|
blob
|
history
diff --git
a/addons/stock/wizard/stock_change_product_qty.py
b/addons/stock/wizard/stock_change_product_qty.py
index
1e7b19f
..
961eb2e
100644
(file)
--- a/
addons/stock/wizard/stock_change_product_qty.py
+++ b/
addons/stock/wizard/stock_change_product_qty.py
@@
-98,7
+98,8
@@
class stock_change_product_qty(osv.osv_memory):
'product_id': data.product_id.id,
'location_id': data.location_id.id,
'lot_id': data.lot_id.id}, context=context)
- th_qty = data.product_id.qty_available
+ product = data.product_id.with_context(location=data.location_id.id)
+ th_qty = product.qty_available
line_data = {
'inventory_id': inventory_id,
'product_qty': data.new_quantity,