odoo
odoo copied to clipboard
[FIX] project: limit task recursion until date
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
