diff options
| author | Mathieu Duckerts-Antoine <dam@odoo.com> | 2018-01-03 15:50:42 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-05-22 12:29:08 +0200 |
| commit | e7ecdb8c46c13a55e66c4875c72f7b343e23fc60 (patch) | |
| tree | aab3ea93a9537331c4a3557839e25a2bc05d3d31 /addons/mail/data/ir_cron_data.xml | |
| parent | f7cda99d209c7d8178ed48e33692eb12577d6a4e (diff) | |
[MOV] mail: move crons into their own data file
Purpose is to avoid mixing various data types in the same generic mail_data
file. We already have 2 crons and the upcoming moderation feature will add
some more. Let us put them in their file to ease the finding.
This commit is linked to task ID 29521.
Diffstat (limited to 'addons/mail/data/ir_cron_data.xml')
| -rw-r--r-- | addons/mail/data/ir_cron_data.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/addons/mail/data/ir_cron_data.xml b/addons/mail/data/ir_cron_data.xml new file mode 100644 index 00000000000..8b742a7c02d --- /dev/null +++ b/addons/mail/data/ir_cron_data.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data noupdate="1"> + <record forcecreate="True" id="ir_cron_mail_scheduler_action" model="ir.cron"> + <field name="name">Mail: Email Queue Manager</field> + <field name="model_id" ref="model_mail_mail"/> + <field name="state">code</field> + <field name="code">model.process_email_queue()</field> + <field name="user_id" ref="base.user_root"/> + <field name="interval_number">1</field> + <field name="interval_type">hours</field> + <field name="numbercall">-1</field> + <field eval="False" name="doall"/> + </record> + + <record id="ir_cron_module_update_notification" model="ir.cron"> + <field name="name">Publisher: Update Notification</field> + <field name="model_id" ref="model_publisher_warranty_contract"/> + <field name="state">code</field> + <field name="code">model.update_notification(None)</field> + <field name="user_id" ref="base.user_root" /> + <field name="interval_number">1</field> + <field name="interval_type">weeks</field> + <field name="numbercall">-1</field> + <field name="nextcall" eval="(DateTime.now() + timedelta(days=7)).strftime('%Y-%m-%d %H:%M:%S')" /> + <field eval="False" name="doall" /> + <field name="priority">1000</field> + </record> + </data> +</odoo>
\ No newline at end of file |
