From f44b23545ef2e7467f42ddf9365c978244e56633 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Thu, 16 Jan 2025 11:37:53 +0100 Subject: [PATCH] [IMP] Force "normal" rounding wen converting project uom --- project_time_in_day/models/project_project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project_time_in_day/models/project_project.py b/project_time_in_day/models/project_project.py index c149571da..f0a34cc54 100644 --- a/project_time_in_day/models/project_project.py +++ b/project_time_in_day/models/project_project.py @@ -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")