Use unit price for both supplier type of move

The anglo-saxon move from invoice should use the unit price also for return to
balance the stock supplier account.

issue4713
review14221002
This commit is contained in:
Cédric Krier committed 2015-05-06 18:21:42 +02:00
1 parent 4dd9be5f4d
commit 27e6c7ce62
1 file changed
+1 -1
+1 -1
View File
@@ -131,7 +131,7 @@ class Move:
if consumed_qty >= quantity:
break
if type_ == 'in_supplier':
if type_.endswith('supplier'):
with Transaction().set_context(date=move.effective_date):
unit_price = Currency.compute(move.currency,
move.unit_price, move.company.currency, round=False)