Skip to content
Snippets Groups Projects
Commit e8fb743f authored by Nasreddin (bon)'s avatar Nasreddin (bon)
Browse files

[FIX] crm: Fix compute method on day open


Step to reproduce : Import from Excel a list of Opportunities.

The problem is that in _compute_day_open, the abs of the extraction
date_open - create_date is set as the lead's day_open.
As the date_open has no milliseconds, all those records which
create date is the same second have a date_open that is before their create_date.

Fixed it by comparing the date_create and date_open without microsecond.

Task ID 2222251

closes odoo/odoo#50599

X-original-commit: f7d12770
Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 08ceeaf8
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