Use also cost price for customer credit note

The unit price for incoming product from customer contains the sale price and
not the actual cost price.

issue4097
review12521002
This commit is contained in:
Cédric Krier committed 2014-09-16 10:07:45 +02:00
1 parent 8015545fc1
commit 723ecb1b7d
1 file changed
+1 -1
+1 -1
View File
@@ -131,7 +131,7 @@ class Move:
if consumed_qty >= quantity:
break
if type_.startswith('in_'):
if type_ == 'in_supplier':
with Transaction().set_context(date=move.effective_date):
unit_price = Currency.compute(move.currency,
move.unit_price, move.company.currency, round=False)