summaryrefslogtreecommitdiff
path: root/addons/google_calendar/views
diff options
context:
space:
mode:
authorKersten Jeremy <jke@openerp.com>2014-05-14 10:28:10 +0200
committerKersten Jeremy <jke@openerp.com>2014-05-14 10:28:10 +0200
commit02be7aa65cb2fa06ab2d1fcd250a419015f3c674 (patch)
tree67e78104efd0cbb0dac42e4f8c771b24a2110c45 /addons/google_calendar/views
parent7564f528e0ba959807e995ff5134ec0b04e4cb3f (diff)
[IMP] Improve Calendar synchronization
- Use the new fields from calendar (renamed in 9398.1.7 trunk-cal-v8-jke) - Manage some google excpetions about token expiration - Manage some google excpetions about token revokation - Manage some google excpetions about 410 - Gone from google - Detect / Allow user to change the calendar and remove all old reference. - Use by default the since_modified for synchronization and not always a full (updatedTime in google) - Add some key for ir_parameters : 'calendar.week_synchro' : number of week to synchornize when we are in full mode 'calendar.block_synchro_attendee' : need to synchronize the attendees between google and openerp (creation of partner) 'calendar.block_since_synchro' : Always use the full synchro. (Can be forced in "one time" removing the last synchro from res_users form) 'calendar.debug_print' : _logger is more verbose - Pep 8 - Change behaviour of do_request to return a tuple with status raquest and response - Add field from token and synchro date in res_users view form
Diffstat (limited to 'addons/google_calendar/views')
-rw-r--r--addons/google_calendar/views/res_users.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/google_calendar/views/res_users.xml b/addons/google_calendar/views/res_users.xml
new file mode 100644
index 00000000000..8adc3429090
--- /dev/null
+++ b/addons/google_calendar/views/res_users.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+ <record id="view_users_form" model="ir.ui.view">
+ <field name="name">res.users.form</field>
+ <field name="model">res.users</field>
+ <field name="inherit_id" ref="base.view_users_form"/>
+ <field name="arch" type="xml">
+ <notebook colspan="4" position="inside">
+ <page string="Calendar">
+ <group>
+ <field name="google_calendar_rtoken"/>
+ <field name="google_calendar_token"/>
+ <field name="google_calendar_token_validity"/>
+ <field name="google_calendar_last_sync_date"/>
+ <field name="google_calendar_cal_id"/>
+ </group>
+ </page>
+ </notebook>
+ </field>
+ </record>
+ </data>
+</openerp>
+