Skip to content
Snippets Groups Projects

Round unit price on stock move created by forecast

Merged Cédric Krier requested to merge topic/6.6/stock-forecast-unit-price-round into branch/6.6
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -18,6 +18,8 @@
from trytond.transaction import Transaction
from trytond.wizard import Button, StateTransition, StateView, Wizard
from trytond.modules.product import round_price
from .exceptions import ForecastValidationError
@@ -447,6 +449,7 @@
unit_price = self.product.list_price or 0
unit_price = Uom.compute_price(self.product.default_uom,
unit_price, self.uom)
unit_price = round_price(unit_price)
moves = []
for day, qty in distribution.items():
Loading