mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-21 03:32:05 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
19
odoo-bringout-oca-ocb-mail/mail/controllers/discuss/voice.py
Normal file
19
odoo-bringout-oca-ocb-mail/mail/controllers/discuss/voice.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import http
|
||||
from odoo.http import request
|
||||
from odoo.tools import file_open
|
||||
|
||||
|
||||
class VoiceController(http.Controller):
|
||||
|
||||
@http.route("/discuss/voice/worklet_processor", methods=["GET"], type="http", auth="public", readonly=True)
|
||||
def voice_worklet_processor(self):
|
||||
with file_open("mail/static/src/discuss/voice_message/worklets/processor.js", "rb") as f:
|
||||
data = f.read()
|
||||
return request.make_response(
|
||||
data,
|
||||
headers=[
|
||||
("Content-Type", "application/javascript"),
|
||||
],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue