You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

58 lines
2.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherited calendar form view for scheduling Zoom meeting-->
<record id="view_calendar_event_form" model="ir.ui.view">
<field name="name">
calendar.event.view.form.inherit.odoo.zoom.meet.integration
</field>
<field name="model">calendar.event</field>
<field name="inherit_id" ref="calendar.view_calendar_event_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='categ_ids']" position="after">
<field name="is_zoom_meet" widget="boolean_toggle"/>
</xpath>
<xpath expr="//notebook" position="inside">
<page name="users_zoom_meet_integration"
string="Zoom Meet">
<group>
<group>
<field name="zoom_meet_url"
placeholder="https://us05web.zoom.us....."
widget="CopyClipboardChar" readonly="0"
class="mb-3 pl-3"/>
</group>
<group>
<button name="action_zoom_meet_url"
string="Join Meeting" type="object"
class="btn-primary"
style="margin-left: 200px;margin-top: -5px;"/>
</group>
</group>
<group>
<group>
<field name="zoom_meet_code"
widget="CopyClipboardChar" readonly="0"
class="mb-3 pl-3"/>
</group>
<group>
<field name="zoom_event" invisible="1"/>
</group>
</group>
</page>
</xpath>
</field>
</record>
<record id="view_calendar_event_calendar" model="ir.ui.view">
<field name="name">view.calendar.event.form.inherit.odoo.zoom.meet.integration</field>
<field name="model">calendar.event</field>
<field name="inherit_id" ref="calendar.view_calendar_event_calendar"/>
<field name="arch" type="xml">
<xpath expr="//calendar/field[@name='partner_ids']" position="after">
<field name="videocall_location" widget="url"
text="Join Video Call"
options="{'icon': 'fa fa-lg fa-video-camera'}"
invisible="videocall_location == False"/>
</xpath>
</field>
</record>
</odoo>