Files
odoo_source/addons/microsoft_calendar/views/res_users_views.xml
T
Gabriel de Paula Felix (gdpf) 69d23262f8 [IMP] microsoft_calendar: Credentials module and don't sync old events
Before this commit, when the first synchronization with Outlook Calendar was done or when the synchronization was restarted, all events previously created in Odoo (before synchronizing) were being synced with Outlook, triggering lots of emails and notifications for attendees. Additionaly, all microsoft credentials information were concentrated within the res_users file, difficulting updates in this file.

After this commit, only events created or updated after the synchronization starts (or restarts) are synced with Outlook Calendar, with 5 minutes of time acceptance for avoiding network delay issues. Moreover, a Microsoft Credentials module was added for gathering microsoft credentials in one place.

closes odoo/odoo#128150

Task-id: 3410651
Related: odoo/upgrade#5047
Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
2023-09-12 20:52:14 +00:00

31 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<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="calendar.res_users_view_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='calendar']" position='attributes'>
<attribute name="invisible">0</attribute>
</xpath>
<group name="calendar_accounts" position="inside">
<group string="Outlook Calendar">
<group>
<field name="microsoft_calendar_rtoken" string="Refresh Token" readonly="1"/>
<field name="microsoft_calendar_token" string="User Token" readonly="1"/>
<field name="microsoft_calendar_token_validity" string="Token Validity" readonly="1"/>
<field name="microsoft_calendar_sync_token" string="Next Sync Token" readonly="1"/>
<field name="microsoft_last_sync_date" string="Last Sync Time" readonly="0"/>
<button
string="Reset Account" colspan="2" class="btn btn-secondary mt-3"
type="action" name="%(microsoft_calendar_reset_account_action)d"
context="{'default_user_id': id}"/>
</group>
</group>
</group>
</field>
</record>
</odoo>