Skip to content

Commit

Permalink
Merge pull request #321 from akretion/16-project-time-day-rounding
Browse files Browse the repository at this point in the history
[IMP] Force "normal" rounding wen converting project uom
  • Loading branch information
florian-dacosta authored Jan 16, 2025
2 parents 3b45fd2 + f44b235 commit 88a913f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project_time_in_day/models/project_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ def _convert_to(self, value, conversion):
uom_day = self.env.ref("uom.product_uom_day")
uom_hour = self._get_hour_uom()
if conversion == "days2hours":
return uom_day._compute_quantity(value, uom_hour)
return uom_day._compute_quantity(value, uom_hour, rounding_method="HALF-UP")
elif conversion == "hours2days":
return uom_hour._compute_quantity(value, uom_day)
return uom_hour._compute_quantity(value, uom_day, rounding_method="HALF-UP")

0 comments on commit 88a913f

Please sign in to comment.