summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function.py
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-09-01 17:03:47 +0200
committerDenis Ledoux <dle@odoo.com>2015-09-01 17:15:43 +0200
commit1c533b193feb7629d87ab1ff740b0cbc7615812e (patch)
treee2ca23b43f49f2d3ebd4dbaafb53f8c3ee84258f /addons/analytic_user_function/analytic_user_function.py
parentb8f630e59f9cc21390e15e1b06f0189b5716b503 (diff)
[FIX] google_calendar: events disappearing
This rev. is related to a9e3d74713b6882c64617345696ad326d75a4745 This new revision is about the same use case than above, except that both Google users login doesn't match the Odoo login email. e.g. User A: A@agrolait.com in Odoo, A@gmail.com in Google User B: B@agrolait.com in Odoo, B@gmail.com in Google. When A creates an event, with B in the attendees, and syncs his calendar to Google, B is not automatically invited Google side, as his attendee email is B@agrolait.com, which doesn't match any existing Google User (doesn't match B@gmail.com) While the revision mentioned above, a9e3d74713b6882c64617345696ad326d75a4745, expected the attendee to be automatically invited Google side, and therefore expected the event to already exists in B's calendar. Therefore, when B syncs his calendar in Odoo, as the event was there in his Odoo calendar, but not in his Google Calendar, the code actually think it's no - longer - there, and take the assumption the event has been deleted Google side. So, it deletes the event in Odoo side as well, for both users A & B. To overcome this new issue, when the Google & Odoo users emails do not match, while keeping the compatibility when the Google & Odoo emails do match (and therefore the invitation is automatically sent Google side, as the email matches an existing Google account, and the event is automatically created in B's calendar without needing the sync in Odoo), we now force the Google internal id to be the same for all attendees of an event, event by Google side. opw-645745
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function.py')
0 files changed, 0 insertions, 0 deletions