Add issue8058.diff # [stock_supply_production] Can't create productions from request because exceeds digits limit

This commit is contained in:
Raimon Esteve 2019-01-31 13:14:53 +01:00
parent 36e94d3960
commit ff8e2065a1
2 changed files with 12 additions and 0 deletions

11
issue8058.diff Normal file
View File

@ -0,0 +1,11 @@
diff -r 1eaabd4486d2 trytond/trytond/modules/stock_supply_production/production.py
--- a/trytond/trytond/modules/stock_supply_production/production.py Thu Jan 31 13:00:13 2019 +0100
+++ b/trytond/trytond/modules/stock_supply_production/production.py Thu Jan 31 13:00:57 2019 +0100
@@ -129,7 +129,7 @@
product=product,
bom=product.boms[0].bom if product.boms else None,
uom=product.default_uom,
- quantity=quantity,
+ quantity=float(Decimal(quantity).quantize(Decimal(str(10 ** -product.default_uom.digits)))),
state='request',
)

1
series
View File

@ -82,3 +82,4 @@ issue7129.diff # [account_payment] Slow to list Lines to Pay
issue7395.diff # [account_asset] Crash Depreciation Table repot when lines date is out of range asset start/end
support_postgresql10_6789.patch
issue7856.diff # [stock] Can't move qty from a parent location to child location
issue8058.diff # [stock_supply_production] Can't create productions from request because exceeds digits limit