diff options
Diffstat (limited to 'addons/google_calendar/data')
| -rw-r--r-- | addons/google_calendar/data/google_calendar_data.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/addons/google_calendar/data/google_calendar_data.xml b/addons/google_calendar/data/google_calendar_data.xml new file mode 100644 index 00000000..d0ed9c9f --- /dev/null +++ b/addons/google_calendar/data/google_calendar_data.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<odoo> + <data> + <record forcecreate="True" id="ir_cron_sync_all_cals" model="ir.cron"> + <field name="name">Google Calendar: synchronization</field> + <field name="model_id" ref="model_res_users"/> + <field name="state">code</field> + <field name="code"> +# LUL TODO check this comment +# The context key 'last_sync_hours' allows specifying the minimum delay between consecutive syncs. +# Indeed, in case there are many users / events to sync, the cron might time out. In this case, the +# solution is to force the last_sync_hours to the expected synchronization interval expected. This +# will avoid the synchronization of users that succeeded in the previous failing cron. +model._sync_all_google_calendar() + </field> + <field name="user_id" ref="base.user_root" /> + <field name="interval_number">12</field> + <field name="interval_type">hours</field> + <field name="numbercall">-1</field> + <field eval="False" name="doall" /> + </record> + </data> +</odoo> |
