summaryrefslogtreecommitdiff
path: root/addons/digest/data/digest_tips_data.xml
diff options
context:
space:
mode:
authorstd-odoo <std@odoo.com>2020-10-08 09:06:55 +0000
committerstd-odoo <std@odoo.com>2020-10-08 11:40:08 +0000
commitd2e3c03f89c6c62dc06e05f5fe06104205245e20 (patch)
tree6d337e6c31561bc0a98d159781760cd6edbb94c7 /addons/digest/data/digest_tips_data.xml
parent8af2dbb06723213163ee3ad617e5c9309099b4bc (diff)
[FIX] digest: send the digest tips 2 hours after the database creation
PURPOSE We want to send the digest tips 2 hours after the database creation. It can not be done directly on the digest itself because its field is a date and not a datetime. So we change the "Next Run Date" of the digest to now, and we run the digest CRON 2 hours after its creation. LINKS Task 2351561 Internal odoo/internal/pull/1051 closes odoo/odoo#59474 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/digest/data/digest_tips_data.xml')
-rw-r--r--addons/digest/data/digest_tips_data.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/digest/data/digest_tips_data.xml b/addons/digest/data/digest_tips_data.xml
index 1a479a541d6..1d56e90fe0a 100644
--- a/addons/digest/data/digest_tips_data.xml
+++ b/addons/digest/data/digest_tips_data.xml
@@ -5,7 +5,7 @@
<field name="name">Your Odoo Periodic Digest</field>
<field name="periodicity">daily</field>
<field name="user_ids" eval="[(4, ref('base.user_admin'))]"/>
- <field name="next_run_date" eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d')"/>
+ <field name="next_run_date" eval="DateTime.now().strftime('%Y-%m-%d')"/>
<field name="kpi_res_users_connected">True</field>
<field name="kpi_mail_message_total">True</field>
</record>