I tried to create a cron job in Odoo 15 and it is not working at all even though the terminal returns that the cron job was executed.
I used this in my "automation.xml" file:
noupdate="0">
And my function is as simple as this:
id="ir_cron_scheduler_sync_status_action" model="ir.cron">
name="name">Auto Sync Payment Status
name="model_id" ref="model_model_name"/>
name="state">code
name="code">model.test_cron()
name="user_id" ref="base.user_root"/>
name="interval_number">1
name="interval_type">minutes
name="numbercall">-1
@api.model
def test_cron(self):
print("test cron")
But when I run this scheduled action manually or I just let the server executes it, nothing is printed in the terminal. What might be the issue here? Please help!