odoo icon indicating copy to clipboard operation
odoo copied to clipboard

[FIX] project: limit task recursion until date

Open Yoann-bary opened this issue 1 year ago • 1 comments

Steps to reproduce:

  • Project > New Task > Set 'Deadline' to today
  • 'Repeat Every' 1 week Until tomorrow
  • Save > Change task state to 'Done'

A recurring task is created with a deadline beyond the limit date, this can be repeated indefinitely. This happens because we check he limit date against today instead of comparing it to the task deadline. This is most likely an artifact of 85e9290711c5376660941122dffb3b335b223091, where we allowed immediate recurring task creation (Which would have previously been handled by the CRON at the appropriate date).

opw-4210251


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Yoann-bary avatar Oct 01 '24 13:10 Yoann-bary

Pull request status dashboard

robodoo avatar Oct 01 '24 13:10 robodoo