projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
22e4378
989c290
)
[FIX] account move entry should be created with 0.0 value when cost price is 0.0
author
ado
<ado@tinyerp.com>
Fri, 2 Mar 2012 12:01:44 +0000
(17:31 +0530)
committer
ado
<ado@tinyerp.com>
Fri, 2 Mar 2012 12:01:44 +0000
(17:31 +0530)
bzr revid: ado@tinyerp.com-
20120302120144
-y1vttony6y3u224l
1
2
addons/stock/stock.py
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
addons/stock/stock.py
index
072e444
,
f640cee
..
dcce510
---
1
/
addons/stock/stock.py
---
2
/
addons/stock/stock.py
+++ b/
addons/stock/stock.py
@@@
-2070,7
-2070,7
+2070,7
@@@
class stock_move(osv.osv)
context = {}
currency_ctx = dict(context, currency_id = move.company_id.currency_id.id)
amount_unit = move.product_id.price_get('standard_price', currency_ctx)[move.product_id.id]
- reference_amount = amount_unit * qty or 1.0
- reference_amount = amount_unit * qty or 0.0
++ reference_amount = amount_unit * qty
return reference_amount, reference_currency_id