Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Tryton
Manage
Activity
Members
Labels
Plan
Issues
847
Issue boards
Milestones
External wiki
Code
Merge requests
139
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tryton
Tryton
Merge requests
!939
Round unit price on stock move created by forecast
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Round unit price on stock move created by forecast
topic/6.6/stock-forecast-unit-price-round
into
branch/6.6
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Cédric Krier
requested to merge
topic/6.6/stock-forecast-unit-price-round
into
branch/6.6
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#12705 (closed)
👍
0
👎
0
Merge request reports
Compare
branch/6.6
branch/6.6 (base)
and
latest version
latest version
c2affdae
1 commit,
1 year ago
1 file
+
3
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/stock_forecast/forecast.py
+
3
−
0
Options
@@ -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