Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
370 Weergaven

Cannot create scheduled action based on time based tasks under Automation rules.

I have accidently deleted the Automation Rules: check and execute, scheduled action.

Now all schedule tasks gives the following error when i try to create.

"Missing Record

The scheduled action for Automation Rules seems to have vanished."

How can i recreate this without affecting any of the work I have done so far?

 I can recreate the automation rules that is ok. 

Avatar
Annuleer

What version of Odoo are you referring to since I can't seem to find the error message in source you are referring to.

Auteur

I figured it out from you answer ! Thanks. You are a life saver.

Beste antwoord

In general, this is applicable to every 'pre-defined' data-record in Odoo:

Just upgrade the module that defines the data-record. Odoo will create it, if it doesn't exist (anymore).
Note: Odoo may no necessarily update such a record if it does exists. This is controlled via the noupdate-flag.


In your case, this would be the module Automation Rules (technical name: base_automation) since 'Automation Rules: check and execute' ir.cron is defined in there (see https://github.com/odoo/odoo/blob/18.0/addons/base_automation/data/base_automation_data.xml). You need to go to Apps, (remove the Apps-filter from the search bar) search for Automation Rules, and upgrade this module.


Also note: Manually (re-)creating such a record usually does not work, because Odoo most often refers to the record's id (this would be base_automation.ir_cron_data_base_automation_check in this particular case) that can not be set from UI.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
jun. 25
1866
1
jul. 25
1440
2
mrt. 25
1674
0
feb. 25
1315
0
feb. 25
1542