(transplanted from 6b4def25e4a2dbda01cd83034f301912440dfc03)
This commit is contained in:
Cédric Krier committed 2012-12-17 23:52:07 +01:00
1 parent f99ddfe483
commit bfebd3ff85
1 file changed
+1 -1
+1 -1
View File
@@ -477,7 +477,7 @@ class Production(Workflow, ModelSQL, ModelView):
move_obj.create(values)
cost += Decimal(str(quantity)) * product.cost_price
if hasatttr(product_obj, 'cost_price'):
if hasattr(product_obj, 'cost_price'):
digits = product_obj.cost_price.digits
else:
digits = template_obj.cost_price.digits