diff options
| author | Aurélien (avd) <avd@odoo.com> | 2021-02-04 13:22:15 +0000 |
|---|---|---|
| committer | Aurélien (avd) <avd@odoo.com> | 2021-02-04 14:09:10 +0000 |
| commit | 0564b4a6dacf449e2a87dfdd58bb48b4e79ebfab (patch) | |
| tree | ca13cdd44b47a3f82d4acb079f98af378f327a67 /addons/google_calendar/views | |
| parent | 506755ef8ced187c0f5cd2fa600e7bb1e1fc0fe3 (diff) | |
[IMP] google_calendar: allow to archive from calendar view
Change Delete secondary button on calendar popover to Archive
for synced calendar event. This makes it easier to delete synced
calendar events.
Diffstat (limited to 'addons/google_calendar/views')
| -rw-r--r-- | addons/google_calendar/views/google_calendar_templates.xml | 1 | ||||
| -rw-r--r-- | addons/google_calendar/views/google_calendar_views.xml | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/addons/google_calendar/views/google_calendar_templates.xml b/addons/google_calendar/views/google_calendar_templates.xml index 3b79f6a5a1e..5ec3eaaf234 100644 --- a/addons/google_calendar/views/google_calendar_templates.xml +++ b/addons/google_calendar/views/google_calendar_templates.xml @@ -3,6 +3,7 @@ <template id="assets_backend" name="google_calendar assets" inherit_id="web.assets_backend"> <xpath expr="." position="inside"> <link rel="stylesheet" type="text/scss" href="/google_calendar/static/src/scss/google_calendar.scss"/> + <script type="text/javascript" src="/google_calendar/static/src/js/google_calendar_popover.js"></script> <script type="text/javascript" src="/google_calendar/static/src/js/google_calendar.js"></script> </xpath> </template> diff --git a/addons/google_calendar/views/google_calendar_views.xml b/addons/google_calendar/views/google_calendar_views.xml new file mode 100644 index 00000000000..1d22a10e548 --- /dev/null +++ b/addons/google_calendar/views/google_calendar_views.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<odoo> + <record id="view_google_calendar_event" model="ir.ui.view"> + <field name="name">google_calendar.event.calendar</field> + <field name="model">calendar.event</field> + <field name="inherit_id" ref="calendar.view_calendar_event_calendar"/> + <field name="arch" type="xml"> + <field name="attendee_status" position="after"> + <field name="google_id" invisible="1"/> + </field> + </field> + </record> +</odoo> |
