diff --git a/odoo_zoom_meet_integration/__manifest__.py b/odoo_zoom_meet_integration/__manifest__.py index 8c34ed2e8..542ca0b8d 100644 --- a/odoo_zoom_meet_integration/__manifest__.py +++ b/odoo_zoom_meet_integration/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################# { 'name': "Odoo Zoom Meet Integration", - 'version': '15.0.1.1.1', + 'version': '15.0.1.2.1', "category": 'Extra Tools', 'summary': """Integrates odoo calender module with Zoom.""", 'description': """Integrates odoo calender module with Zoom and helps to diff --git a/odoo_zoom_meet_integration/doc/RELEASE_NOTES.md b/odoo_zoom_meet_integration/doc/RELEASE_NOTES.md index dd5586d86..bfc9ed2aa 100644 --- a/odoo_zoom_meet_integration/doc/RELEASE_NOTES.md +++ b/odoo_zoom_meet_integration/doc/RELEASE_NOTES.md @@ -1,6 +1,16 @@ ## Module -#### 04.09.2023 +#### 14.07.2023 #### Version 15.0.1.0.0 #### ADD -- Initial commit for Odoo Zoom Meet Integration \ No newline at end of file +- Initial commit for Odoo Zoom Meet Integration + +#### 04.09.2023 +#### Version 15.0.1.1.1 +#### ADD +- Implemented the meeting link in the videocall_location field, to be able to view it when synchronized to google calendar. + +#### 14.09.2023 +#### Version 15.0.1.2.1 +#### ADD +- Implemented the description in the description field with the meeting code. \ No newline at end of file diff --git a/odoo_zoom_meet_integration/models/calendar_event.py b/odoo_zoom_meet_integration/models/calendar_event.py index 87c49a8db..f3061eac3 100644 --- a/odoo_zoom_meet_integration/models/calendar_event.py +++ b/odoo_zoom_meet_integration/models/calendar_event.py @@ -20,7 +20,9 @@ # ############################################################################# import json + import requests + from odoo import api, fields, models, _ from odoo.exceptions import UserError, ValidationError @@ -38,6 +40,15 @@ class CalendarEvent(models.Model): zoom_event = fields.Char(string='Zoom Event ID', help='Event ID of the zoom meet') videocall_location = fields.Char('Meeting URL', related='zoom_meet_url') + description = fields.Text('Description', + states={'done': [('readonly', True)]}, + compute="_compute_description", store=True) + + @api.depends('zoom_meet_code', 'zoom_meet_url') + def _compute_description(self): + for rec in self: + if rec.zoom_meet_code and rec.zoom_meet_url: + rec.description = "Join the Zoom Meeting at " + str(rec.zoom_meet_url) + "using the Meeting Code " + str(rec.zoom_meet_code) def action_zoom_meet_url(self): """Join zoom from Odoo"""