Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
8 Views

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!

Avatar
Discard

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

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!