Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5563 Vizualizări

good night,

what is the difference between a server action and a cron type action

Thank you,

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează