Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
386 Ansichten

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
Verwerfen

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

Autor

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

Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
4
Juni 25
1873
1
Juli 25
1448
2
März 25
1677
0
Feb. 25
1317
0
Feb. 25
1543