Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
387 Переглядів

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. 

Аватар
Відмінити

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

Автор

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

Найкраща відповідь

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
4
черв. 25
1873
1
лип. 25
1448
2
бер. 25
1679
0
лют. 25
1317
0
лют. 25
1544