mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-21 22:32:06 +02:00
Initial commit: Security packages
This commit is contained in:
commit
bb469e4763
1399 changed files with 278378 additions and 0 deletions
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue