Remove issue14061002_40001 patch beacsue it's applayed in the module

This commit is contained in:
Bernat Brunet Torruella 2015-03-19 15:26:14 +01:00
parent 91c5dc0943
commit 091a0980ac
1 changed files with 0 additions and 24 deletions

View File

@ -1,24 +0,0 @@
# HG changeset patch
# User Guillem Barba <guillembarba@gmail.com>
return production's cost rounded to field's precision
review14061002
Index: production.py
===================================================================
--- a/trytond/trytond/modules/production/production.py
+++ b/trytond/trytond/modules/production/production.py
@@ -340,7 +340,9 @@
else:
cost_price = input_.product.cost_price
cost += (Decimal(str(input_.internal_quantity)) * cost_price)
- return cost
+
+ digits = self._fields['cost'].digits
+ return cost.quantize(Decimal(str(10 ** -digits[1])))
@fields.depends('inputs')
def on_change_with_cost(self):