good night,
what is the difference between a server action and a cron type action
Thank you,
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
good night,
what is the difference between a server action and a cron type action
Thank you,
Hi,
By using Server Action(ir.actions.server) we can create a quick and easy configuration some process which we require to call very often. Like ‘Execute Python Code’, ‘Create a new Record’, ‘Write on a Record’, etc. There is a "Create Contextual Action" button available in action form, it will create an entry in the More menu of the base model. This will allow to run them in mass mode easily through the interface from the list view.
If you want an action triggered automatically on a predefined frequency, you can use Scheduled Actions(ir.cron). This can be a simple call to the model’s method.
model.<method_name>()
If you want to trigger an action based on a trigger condition like 'On Creation', 'On Update', 'On Deletion', etc. you can use Automated Actions(base.automation).
Hope this helps.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up