Skip to content

Commit a2d6648

Browse files
updated menu (#260)
1 parent ac6ebed commit a2d6648

1 file changed

Lines changed: 42 additions & 69 deletions

File tree

mail_livekit/views/res_config_settings_views.xml

Lines changed: 42 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -6,75 +6,48 @@
66
<field name="inherit_id" ref="base.res_config_settings_view_form" />
77
<field name="arch" type="xml">
88
<xpath expr="//form" position="inside">
9-
<div
10-
class="app_settings_block"
11-
data-string="LiveKit Integration"
12-
string="LiveKit Integration"
13-
data-key="mail_livekit"
14-
>
15-
<h2>LiveKit Video Conferencing</h2>
16-
<div class="row mt16 o_settings_container">
17-
<div class="col-12 col-lg-6 o_setting_box">
18-
<div class="o_setting_left_pane">
19-
<field name="livekit_enabled" />
20-
</div>
21-
<div class="o_setting_right_pane">
22-
<div class="content-group">
23-
<div class="mt8">
24-
<label
25-
for="livekit_enabled"
26-
class="o_form_label"
27-
string="Enable LiveKit"
28-
/>
29-
<div class="text-muted">
30-
When enabled and configured, Discuss calls use LiveKit media instead of Odoo's native RTC.
31-
A full page reload may be required after changing this setting.
32-
</div>
33-
</div>
34-
<div class="mt8">
35-
<label
36-
for="livekit_server_url"
37-
class="o_form_label"
38-
string="Server URL"
39-
/>
40-
<field
41-
name="livekit_server_url"
42-
placeholder="wss://your-livekit-server.com"
43-
/>
44-
</div>
45-
<div class="mt8">
46-
<label
47-
for="livekit_api_key"
48-
class="o_form_label"
49-
string="API Key"
50-
/>
51-
<field
52-
name="livekit_api_key"
53-
password="True"
54-
placeholder="Your LiveKit API Key"
55-
/>
56-
</div>
57-
<div class="mt8">
58-
<label
59-
for="livekit_api_secret"
60-
class="o_form_label"
61-
string="API Secret"
62-
/>
63-
<field
64-
name="livekit_api_secret"
65-
password="True"
66-
placeholder="Your LiveKit API Secret"
67-
/>
68-
</div>
69-
<div class="mt8 text-muted">
70-
Configure your LiveKit credentials to enable video conferencing in Discuss channels.
71-
Get your credentials from your LiveKit Cloud dashboard or self-hosted server.
72-
</div>
73-
</div>
74-
</div>
75-
</div>
76-
</div>
77-
</div>
9+
<app data-string="LiveKit" string="LiveKit" name="mail_livekit">
10+
<block title="LiveKit Video Conferencing" id="livekit_config">
11+
<setting
12+
id="livekit_enabled_setting"
13+
help="When enabled and configured, Discuss calls use LiveKit media instead of Odoo's native RTC. A full page reload may be required after changing this setting."
14+
>
15+
<field name="livekit_enabled" />
16+
</setting>
17+
<setting
18+
id="livekit_server_url_setting"
19+
string="Server URL"
20+
help="WebSocket URL of your LiveKit server (e.g. wss://your-livekit-server.com)"
21+
>
22+
<field
23+
name="livekit_server_url"
24+
placeholder="wss://your-livekit-server.com"
25+
/>
26+
</setting>
27+
<setting
28+
id="livekit_api_key_setting"
29+
string="API Key"
30+
help="API key from your LiveKit Cloud dashboard or self-hosted server"
31+
>
32+
<field
33+
name="livekit_api_key"
34+
password="True"
35+
placeholder="Your LiveKit API Key"
36+
/>
37+
</setting>
38+
<setting
39+
id="livekit_api_secret_setting"
40+
string="API Secret"
41+
help="API secret from your LiveKit Cloud dashboard or self-hosted server"
42+
>
43+
<field
44+
name="livekit_api_secret"
45+
password="True"
46+
placeholder="Your LiveKit API Secret"
47+
/>
48+
</setting>
49+
</block>
50+
</app>
7851
</xpath>
7952
</field>
8053
</record>

0 commit comments

Comments
 (0)