upgrade-cron-notify-progress (U1924)#
_notify_progress(), deprecated in Odoo 19.0 for _commit_progress().
Applies to Odoo 19.0 and later.
What it does#
Reports calls to ._notify_progress().
Why is this bad?#
Odoo 19.0 deprecated ir.cron._notify_progress(done=, remaining=) in
favour of _commit_progress(processed, remaining=). The new method differs
in two ways, which is why there is no automatic fix:
processedis the number of records of this batch, added to the count so far, wheredonewas the total;it commits the transaction, so a
self.env.cr.commit()after it goes. Its return value is the time left for the run, to stop a loop in time.