mirror of
https://github.com/bringout/oca-ocb-crm.git
synced 2026-04-23 09:32:08 +02:00
19.0 vanilla
This commit is contained in:
parent
dc68f80d3f
commit
7221b9ac46
610 changed files with 135477 additions and 161677 deletions
|
|
@ -36,11 +36,11 @@ class CalendarEvent(models.Model):
|
|||
event.is_highlighted = True
|
||||
|
||||
@api.model_create_multi
|
||||
def create(self, vals):
|
||||
events = super(CalendarEvent, self).create(vals)
|
||||
def create(self, vals_list):
|
||||
events = super().create(vals_list)
|
||||
for event in events:
|
||||
if event.opportunity_id and not event.activity_ids:
|
||||
event.opportunity_id.log_meeting(event.name, event.start, event.duration)
|
||||
event.opportunity_id.log_meeting(event)
|
||||
return events
|
||||
|
||||
def _is_crm_lead(self, defaults, ctx=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue