Hey Cyllo community! Is there a way to automate sending out daily emails and scheduling hourly tasks within Cyllo? Any tips or tutorials would be greatly appreciated!
Welcome!
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
Here's how you can set up a cron job in Odoo to periodically run a Python method. This example shows how to mark records as processed on a hourly basis. This approach allows you to run a Python method periodically, typically used for background processing, data cleanup, automated emails, etc. XML code - Define Cron Job Process Example Records code model._process_example_records() 1 hours Python code - Define Method in the Model from odoo import fields, models class ExampleModel(models.Model): _name = 'example.model' _description = 'Example Model' name = fields.Char(string='Name') processed = fields.Boolean(string='Processed', default=False) def _process_example_records(self): """ Mark unprocessed records as processed. """ unprocessed = self.search([('processed', '=', False)]) for record in unprocessed: record.processed = True