Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
5588 Переглядів

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.

Аватар
Відмінити