Files
odoo_source/addons/microsoft_calendar/views/res_users_views.xml
T
Lavish Chhatwani 348a5c8467 [IMP] calendar,{google,microsoft}_calendar: merge duplicate 'Calendar' tabs
Before this commit
- If Google Calendar and Outlook Calendar are installed, there are two
  'Calendar' tabs displayed on the user form view which is confusing
  and they both share very similar fields.
- Also, in calendar the 'Sync with Google' and 'Sync with Microsoft'
  buttons were not having the same size.

After Commit :
- Now only one 'Calendar tab is there which contains two groups, one
  for 'Google Calendar' and one for 'Office 365 Calendar'.
- Top margin is added on 'Reset Account' button for both Google and
  Microsoft groups for better UI.
- In calendar, 'Sync with Google' and 'Sync with Microsoft' buttons are
  having the same size.

Note - The scss files are not much needed anymore and thus were removed.
       Also to avoid a bridge module just for the sake of empty container,
       we add it in calendar itself.

Task Id-2323205
PR #56551

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-10-13 07:31:58 +00:00

30 lines
1.5 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"/>
<button
string="Reset Account" class="btn btn-secondary mt-3"
type="action" name="%(microsoft_calendar_reset_account_action)d"
context="{'default_user_id': active_id}"/>
</group>
</group>
</group>
</field>
</record>
</odoo>