diff --git a/voice_note_in_chatter/README.rst b/voice_note_in_chatter/README.rst new file mode 100755 index 000000000..854ef9cda --- /dev/null +++ b/voice_note_in_chatter/README.rst @@ -0,0 +1,41 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Voice Chat in Odoo V16 +====================== +This module allow to record voice in Odoo. + +Configuration +============= +*No Additional configuration is needed. + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: Athira P S @cybrosys, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/voice_note_in_chatter/__manifest__.py b/voice_note_in_chatter/__manifest__.py new file mode 100644 index 000000000..4bc7cdb81 --- /dev/null +++ b/voice_note_in_chatter/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Athira P S (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +{ + 'name': 'Voice Chat In Odoo', + 'version': '16.0.1.0.0', + 'category': 'Discuss', + 'summary': 'Record voice Chat in odoo.', + 'description': 'Record voice note in odoo', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.gif'], + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'mail'], + 'assets': { + 'web.assets_backend': [ + 'voice_note_in_chatter/static/src/xml/voice_in_odoo.xml', + 'voice_note_in_chatter/static/src/js/record_voice_component.js', + 'voice_note_in_chatter/static/src/js/voice_in_odoo.js', + 'voice_note_in_chatter/static/src/js/record_voice_model.js' + ] + }, + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/voice_note_in_chatter/doc/RELEASE_NOTES.md b/voice_note_in_chatter/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..02f677aa8 --- /dev/null +++ b/voice_note_in_chatter/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 09.03.2023 +#### Version 16.0.1.0.0 +#### ADD + +- Voice Chat In Odoo - Complete Report diff --git a/voice_note_in_chatter/static/description/assets/icons/check.png b/voice_note_in_chatter/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/check.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/chevron.png b/voice_note_in_chatter/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/chevron.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/cogs.png b/voice_note_in_chatter/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/cogs.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/consultation.png b/voice_note_in_chatter/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/consultation.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/ecom-black.png b/voice_note_in_chatter/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/ecom-black.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/education-black.png b/voice_note_in_chatter/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/education-black.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/hotel-black.png b/voice_note_in_chatter/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/hotel-black.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/license.png b/voice_note_in_chatter/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/license.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/lifebuoy.png b/voice_note_in_chatter/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/lifebuoy.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/manufacturing-black.png b/voice_note_in_chatter/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/manufacturing-black.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/pos-black.png b/voice_note_in_chatter/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/pos-black.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/puzzle.png b/voice_note_in_chatter/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/puzzle.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/restaurant-black.png b/voice_note_in_chatter/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/restaurant-black.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/service-black.png b/voice_note_in_chatter/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/service-black.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/trading-black.png b/voice_note_in_chatter/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/trading-black.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/training.png b/voice_note_in_chatter/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/training.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/update.png b/voice_note_in_chatter/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/update.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/user.png b/voice_note_in_chatter/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/user.png differ diff --git a/voice_note_in_chatter/static/description/assets/icons/wrench.png b/voice_note_in_chatter/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/icons/wrench.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/categories.png b/voice_note_in_chatter/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/categories.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/check-box.png b/voice_note_in_chatter/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/check-box.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/compass.png b/voice_note_in_chatter/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/compass.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/corporate.png b/voice_note_in_chatter/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/corporate.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/customer-support.png b/voice_note_in_chatter/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/customer-support.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/cybrosys-logo.png b/voice_note_in_chatter/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/cybrosys-logo.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/features.png b/voice_note_in_chatter/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/features.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/logo.png b/voice_note_in_chatter/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/logo.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/pictures.png b/voice_note_in_chatter/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/pictures.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/pie-chart.png b/voice_note_in_chatter/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/pie-chart.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/right-arrow.png b/voice_note_in_chatter/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/right-arrow.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/star.png b/voice_note_in_chatter/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/star.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/support.png b/voice_note_in_chatter/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/support.png differ diff --git a/voice_note_in_chatter/static/description/assets/misc/whatsapp.png b/voice_note_in_chatter/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/misc/whatsapp.png differ diff --git a/voice_note_in_chatter/static/description/assets/modules/1.png b/voice_note_in_chatter/static/description/assets/modules/1.png new file mode 100644 index 000000000..5238bdeab Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/modules/1.png differ diff --git a/voice_note_in_chatter/static/description/assets/modules/2.png b/voice_note_in_chatter/static/description/assets/modules/2.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/modules/2.png differ diff --git a/voice_note_in_chatter/static/description/assets/modules/3.png b/voice_note_in_chatter/static/description/assets/modules/3.png new file mode 100644 index 000000000..3c3ff1afb Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/modules/3.png differ diff --git a/voice_note_in_chatter/static/description/assets/modules/4.png b/voice_note_in_chatter/static/description/assets/modules/4.png new file mode 100644 index 000000000..3fae4631e Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/modules/4.png differ diff --git a/voice_note_in_chatter/static/description/assets/modules/5.gif b/voice_note_in_chatter/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/modules/5.gif differ diff --git a/voice_note_in_chatter/static/description/assets/modules/6.png b/voice_note_in_chatter/static/description/assets/modules/6.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/modules/6.png differ diff --git a/voice_note_in_chatter/static/description/assets/screenshots.zip b/voice_note_in_chatter/static/description/assets/screenshots.zip new file mode 100644 index 000000000..ff00c84e4 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/screenshots.zip differ diff --git a/voice_note_in_chatter/static/description/assets/screenshots/alert.png b/voice_note_in_chatter/static/description/assets/screenshots/alert.png new file mode 100644 index 000000000..dcab88816 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/screenshots/alert.png differ diff --git a/voice_note_in_chatter/static/description/assets/screenshots/hero.gif b/voice_note_in_chatter/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..17a80b183 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/screenshots/hero.gif differ diff --git a/voice_note_in_chatter/static/description/assets/screenshots/voice1.png b/voice_note_in_chatter/static/description/assets/screenshots/voice1.png new file mode 100644 index 000000000..43958b9ed Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/screenshots/voice1.png differ diff --git a/voice_note_in_chatter/static/description/assets/screenshots/voice2.png b/voice_note_in_chatter/static/description/assets/screenshots/voice2.png new file mode 100644 index 000000000..76bf84590 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/screenshots/voice2.png differ diff --git a/voice_note_in_chatter/static/description/assets/screenshots/voice3.png b/voice_note_in_chatter/static/description/assets/screenshots/voice3.png new file mode 100644 index 000000000..63d9a5c53 Binary files /dev/null and b/voice_note_in_chatter/static/description/assets/screenshots/voice3.png differ diff --git a/voice_note_in_chatter/static/description/banner.gif b/voice_note_in_chatter/static/description/banner.gif new file mode 100644 index 000000000..db040e0de Binary files /dev/null and b/voice_note_in_chatter/static/description/banner.gif differ diff --git a/voice_note_in_chatter/static/description/icon.png b/voice_note_in_chatter/static/description/icon.png new file mode 100644 index 000000000..46315b98e Binary files /dev/null and b/voice_note_in_chatter/static/description/icon.png differ diff --git a/voice_note_in_chatter/static/description/index.html b/voice_note_in_chatter/static/description/index.html new file mode 100644 index 000000000..6e3823316 --- /dev/null +++ b/voice_note_in_chatter/static/description/index.html @@ -0,0 +1,549 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Voice Chat in Odoo

+

Record voice in + Odoo.

+ + +
+
+
+
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ In odoo we do not have an option to send voice,this App Will allow us to record voice.Also, we can download this + voice.This app ensure the security of site,for this it will display an alert if we're using unsecured + site(http).We can only record voice in secured site. + +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Added a new icon for recording voice in odoo. +
+
+ + We can send recorded voice. +
+
+ + If you're running on unsecured site,an alert will shown,we can not able to record voice in unsecured site(Need HTTPS). +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+
+

Alert. +

+

An alert will show in + voice button click while we are running on unsecured site.

+ +
+ +
+

Voice Icon. +

+

Here we can record the + voice.The same button will perform the start and stop function.

+ +
+ +
+

Recorded voice.

+ +
+ +
+ +
+
+
+ + + +
+
+ +
+

Related + Products +

+
+
+
+ +
+
+ + + + +
+
+ +
+

Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + + +
+
+ +
+

Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/voice_note_in_chatter/static/src/js/record_voice_component.js b/voice_note_in_chatter/static/src/js/record_voice_component.js new file mode 100644 index 000000000..664b95488 --- /dev/null +++ b/voice_note_in_chatter/static/src/js/record_voice_component.js @@ -0,0 +1,21 @@ +/** @odoo-module **/ + +import { registerMessagingComponent } from '@mail/utils/messaging_component'; +const { Component } = owl; + +export class AttachmentAudio extends Component { + + /** + * @returns {AttachmentAudio} + */ + get attachmentAudio() { + return this.props.record; + } +} + +Object.assign(AttachmentAudio, { + props: { record: Object }, + template: 'web.AttachmentAudioField', +}); + +registerMessagingComponent(AttachmentAudio); \ No newline at end of file diff --git a/voice_note_in_chatter/static/src/js/record_voice_model.js b/voice_note_in_chatter/static/src/js/record_voice_model.js new file mode 100644 index 000000000..497c55fec --- /dev/null +++ b/voice_note_in_chatter/static/src/js/record_voice_model.js @@ -0,0 +1,33 @@ +/** @odoo-module **/ + +import { registerModel } from '@mail/model/model_core'; +import { attr, one } from '@mail/model/model_field'; +import { clear } from '@mail/model/model_field_command'; +import { isEventHandled, markEventHandled } from '@mail/utils/utils'; + +registerModel({ + name: 'AttachmentAudio', + recordMethods: { + }, + fields: { + /** + * Determines the attachment of this Audio. + */ + attachment: one('Attachment', { + identifying: true, + }), + /** + * States the attachmentList displaying this Attachment audio. + */ + attachmentList: one('AttachmentList', { + identifying: true, + inverse: 'attachmentAudio', + }), + /** + * Download Audio Attachment. + */ + downloadUrl: attr({ + related:'attachment.downloadUrl' + }), + }, +}); \ No newline at end of file diff --git a/voice_note_in_chatter/static/src/js/voice_in_odoo.js b/voice_note_in_chatter/static/src/js/voice_in_odoo.js new file mode 100644 index 000000000..b3c5d8825 --- /dev/null +++ b/voice_note_in_chatter/static/src/js/voice_in_odoo.js @@ -0,0 +1,88 @@ +/** @odoo-module **/ +import { registerPatch } from '@mail/model/model_core'; +import { clear } from '@mail/model/model_field_command'; +import Dialog from "web.Dialog"; +const {_t} = require('web.core'); +import '@mail/models/composer_view'; +import { attr, many, one } from '@mail/model/model_field'; +var flag=false; +var recorder, gumStream; +registerPatch({ + name: 'ComposerView', + recordMethods: { + recordVoice: function(){ + //Check security of site + if (location.href.includes('https:')){ + /** + * Asks for access to the user's microphone if not granted yet, then + * starts recording. + */ + var self = this; + if (recorder && recorder.state == "recording") { + recorder.stop(); + gumStream.getAudioTracks()[0].stop(); + } else { + navigator.mediaDevices.getUserMedia({ + audio: true + }).then((stream) => { + gumStream = stream; + var base64String + recorder = new MediaRecorder(stream); + recorder.ondataavailable = async function (e) { + var reader = new FileReader(); + reader.readAsDataURL(e.data); + reader.onloadend = async function (){ + base64String = reader.result; + var data = base64String; + var fl = []; + var arr = data.split(','), + mime = arr[0].match(/:(.*?);/)[1], + bstr = atob(arr[1]), + n = bstr.length, + u8arr = new Uint8Array(n); + + while (n--) { + u8arr[n] = bstr.charCodeAt(n); + } + + var f = new File([u8arr], 'message.mp3', { + type: mime + }); + fl.push(f); + await self.fileUploader.uploadFiles(fl) + }; + }; + recorder.start(); + }); + } + + }else { + //If the site is not https,an alert will display. + if(flag==false){ + flag=true + var dialog = new Dialog(this, { + size: 'medium', + buttons: '', + $content: $('
', { + text: _t("Site is not secure,use secured site(https)") + }), + }).open() + } + } + } + } +}); +registerPatch({ +name: 'AttachmentList', + fields:{ + /** + * States the attachment audio that are displaying this audioAttachments. + */ + attachmentAudio: many('AttachmentAudio', { + compute() { + return this.nonImageAttachments.map(attachment => ({ attachment })); + }, + inverse: 'attachmentList', + }), +} +}); \ No newline at end of file diff --git a/voice_note_in_chatter/static/src/xml/voice_in_odoo.xml b/voice_note_in_chatter/static/src/xml/voice_in_odoo.xml new file mode 100644 index 000000000..844df4272 --- /dev/null +++ b/voice_note_in_chatter/static/src/xml/voice_in_odoo.xml @@ -0,0 +1,90 @@ + + +