<commit_before># Copyright 2021 <NAME> - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import models, fields


class CalendarEvent(models.Model):
    _inherit = 'calendar.event'

    task_id = fields.Many2one(
        string='Task', comodel_name='project.task')<commit_msg>[IMP] project_task_meeting: Solve an agrupation of tasks in meetings. (#236)<commit_after># Copyright 2021 <NAME> - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import models, fields, api


class CalendarEvent(models.Model):
    _inherit = 'calendar.event'

    task_id = fields.Many2one(
        string='Task', comodel_name='project.task')

    @api.model
    def _get_public_fields(self):
        result = super(CalendarEvent, self)._get_public_fields()
        result |= {'task_id'}
        return result
{'fraction_non_alphanumeric': 0.12602100350058343, 'fraction_numerical': 0.022170361726954493, 'mean_word_length': 3.7403314917127073, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5822057', 'n_tokens_mistral': 299, 'n_tokens_neox': 277, 'n_words': 63}