Reviewers: ,


Please review this at http://codereview.tryton.org/501004/

Affected files:
  M production.py


Index: production.py
===================================================================
--- a/production.py
+++ b/production.py
@@ -314,8 +314,8 @@
             if values:
                 values['unit_price'] = Decimal(0)
                 if output.product.id == values.get('product') and quantity:
-                    values['unit_price'] = (changes['cost'] /
-                        Decimal(str(quantity)))
+ values['unit_price'] = Decimal(str(round((changes['cost'] /
+                        Decimal(str(quantity))),4)))
                 outputs['add'].append(values)
         return changes



--
[email protected] mailing list

Reply via email to