Skip to content

Commit

Permalink
Merge PR #2257 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by LoisRForgeFlow
  • Loading branch information
OCA-git-bot committed Apr 26, 2024
2 parents 4452caf + 8c087e2 commit 71d72ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions supplier_calendar/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def supplier_plan_days(self, date_from, delta):
:return: datetime: resulting date.
"""
self.ensure_one()
if isinstance(delta, float):
delta = round(delta)
if not isinstance(date_from, datetime):
date_from = fields.Datetime.to_datetime(date_from)
if delta == 0:
Expand Down

0 comments on commit 71d72ed

Please sign in to comment.