Files
odoo_source/addons/mail/views/res_users_settings_views.xml
T
Thanh Dodeur ac99b09cdc [IMP] mail*: add audio and video conference with webRTC
*test_discuss_full,test_lint

This commit adds the audio and video conference feature to mail channels
and integrate it with the groupDM/guest features.

Adds new mp3 and ogg files (from task-2554674) for sound effects.

- Adds three new tables:
    * `mail.channel.rtc.session` to manage the peerToPeer interactions
      during rtc calls.
    * `mail.ice.server` to provide ICE servers necessary to establish
      peerToPeer connections with webRtc.
    * `res.users.settings.volumes` to hold the partner-to-partner volume
      settings, each partner can create one new setting per other
      partner to configure the volume coming from those partners during
      calls.

- changes res.config.settings:
    * Adds new fields for the Twilio credentials to use their STUN/TURN
      service.

- changes res.user.settings:
    * Adds 4 fields for the push to talk and voice activation.

- changes mail.channel:
    * Adds a new field `rtc_session_ids` that represents the active
      participants in a rtc call on that channel.

- changes mail.channel.partner:
    * Adds a new field `rtc_inviting_session_id` that represents the
      rtcSession of the user that is inviting that channelPartner to a
      call.

task-2366708

closes odoo/odoo#66611

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-04 06:23:56 +00:00

59 lines
2.4 KiB
XML

<?xml version="1.0"?>
<odoo>
<record id="res_users_settings_view_tree" model="ir.ui.view">
<field name="name">res.users.settings.tree</field>
<field name="model">res.users.settings</field>
<field name="priority">10</field>
<field name="arch" type="xml">
<tree string="User Settings">
<field name="id"/>
<field name="user_id"/>
<field name="use_push_to_talk"/>
</tree>
</field>
</record>
<record id="res_users_settings_view_form" model="ir.ui.view">
<field name="name">res.users.settings.form</field>
<field name="model">res.users.settings</field>
<field name="arch" type="xml">
<form string="User Settings">
<sheet>
<div class="oe_title">
<h1><field name="user_id"/></h1>
</div>
<group>
<group string="Discuss sidebar">
<field name="is_discuss_sidebar_category_channel_open"/>
<field name="is_discuss_sidebar_category_chat_open"/>
</group>
<group string="Voice">
<field name="use_push_to_talk"/>
<field name="push_to_talk_key" placeholder="e.g. true.true..f" attrs="{'invisible': [('use_push_to_talk', '=', False)]}"/>
<field name="voice_active_duration" attrs="{'invisible': [('use_push_to_talk', '=', True)]}"/>
</group>
</group>
<notebook colspan="4">
<page string="Volume per partner">
<field name="volume_settings_ids">
<tree editable="bottom">
<field name="partner_id"/>
<field name="volume"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="res_users_settings_action" model="ir.actions.act_window">
<field name="name">User Settings</field>
<field name="res_model">res.users.settings</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>