Thursday, February 4, 2021
2 changes · master
Enhancements to existing features
Automated scheduled actions can now be triggered for several planned moments in one request, instead of requiring repeated separate calls. This makes business workflows that need per-record or multi-time scheduling simpler and more efficient, while removing an unused delay option.
Original PR description
Often the business want to trigger the cron several time at different moments. The typical use case is the business holds a recordset and needs to trigger the cron for every record. The current solution is to loop on each record to call `_trigger` times. We now allow to invoke `_trigger` with an iterable of `datetime` objects, and isolate the implementation in method `_trigger_list`. We also removed the `delay` argument as it was not used. Task: 2452697
A shorter command option was added as an alternative to the existing stop-after-startup setting. This makes a frequent developer workflow quicker and less error-prone without changing business functionality.
Original PR description
This command is often used by developers and we often need to add or remove it in a way that we can't add it in scripts. It is also kind of long to type each time. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr