mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-23 12:12:00 +02:00
19.0 vanilla
This commit is contained in:
parent
5faf7397c5
commit
2696f14ed7
721 changed files with 220375 additions and 91221 deletions
|
|
@ -1,8 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class MailActivityMixin(models.AbstractModel):
|
||||
_inherit = 'mail.activity.mixin'
|
||||
|
||||
|
|
@ -15,4 +15,6 @@ class MailActivityMixin(models.AbstractModel):
|
|||
"""This computes the calendar event of the next activity.
|
||||
It evaluates to false if there is no such event."""
|
||||
for record in self:
|
||||
record.activity_calendar_event_id = fields.first(record.activity_ids).calendar_event_id
|
||||
activities = record.activity_ids
|
||||
activity = next(iter(activities), activities)
|
||||
record.activity_calendar_event_id = activity.calendar_event_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue