Use template quantity to update cost_price

This commit is contained in:
Cédric Krier
2008-10-31 14:15:20 +01:00
parent ccb7ee7eda
commit f4256013fb
+1 -1
View File
@@ -295,7 +295,7 @@ class Move(OSV):
cursor, user, uom, quantity, product.default_uom, context=context)
qty = Decimal(str(qty))
product_qty = Decimal(str(product.quantity))
product_qty = Decimal(str(product.template.quantity))
# convert wrt currency
unit_price = currency_obj.compute(
cursor, user, currency, unit_price, company.currency,