diff options
| author | std-odoo <std@odoo.com> | 2020-10-08 09:06:55 +0000 |
|---|---|---|
| committer | std-odoo <std@odoo.com> | 2020-10-08 11:40:08 +0000 |
| commit | d2e3c03f89c6c62dc06e05f5fe06104205245e20 (patch) | |
| tree | 6d337e6c31561bc0a98d159781760cd6edbb94c7 /addons/digest/data/ir_cron_data.xml | |
| parent | 8af2dbb06723213163ee3ad617e5c9309099b4bc (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/ir_cron_data.xml')
| -rw-r--r-- | addons/digest/data/ir_cron_data.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/digest/data/ir_cron_data.xml b/addons/digest/data/ir_cron_data.xml index 2945ad397cd..387767bd10d 100644 --- a/addons/digest/data/ir_cron_data.xml +++ b/addons/digest/data/ir_cron_data.xml @@ -9,5 +9,6 @@ <field name="interval_number">1</field> <field name="interval_type">days</field> <field name="numbercall">-1</field> + <field name="nextcall" eval="(DateTime.now() + timedelta(hours=2)).strftime('%Y-%m-%d %H:%M:%S')"/> </record> </odoo> |
