From 723ecb1b7d3bbae8d3f23a24d5be90bf18745fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 16 Sep 2014 10:07:45 +0200 Subject: [PATCH] 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 --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 4e53710ede..5f88f79f9a 100644 --- a/stock.py +++ b/stock.py @@ -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)