跳至內容
選單
此問題已被標幟
1 回覆
368 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
6月 25
1865
1
7月 25
1439
2
3月 25
1674
0
2月 25
1315
0
2月 25
1542