Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
367 Tampilan

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
Buang

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

Penulis

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

Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
4
Jun 25
1865
1
Jul 25
1439
2
Mar 25
1673
0
Feb 25
1315
0
Feb 25
1541