Skip to content
Snippets Groups Projects
Commit 86af7c64 authored by yhu-odoo's avatar yhu-odoo
Browse files

[FIX] purchase_stock: compare only date in on-time delivery


Previously, when compute on-time delivery, we compare the date_planned
on PO line with the date on stock.move. Since they are both datetime,
the product that delivered on the scheduled date may be considered delay
because of the 'time' part is late, which is normally not what we want.
In this commit, we only compare the date part of them to decide whether
it's late or not.

Task 2346121
PR #58653

Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
parent 8179dd97
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment