Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5558 Widoki

good night,

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

Thank you,

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć