parameters: (self, default=None)
return_statement: return copied_event
docstring: When an event is copied, the attendees should be recreated to avoid sharing the same attendee records
           between copies
docstring_summary: When an event is copied, the attendees should be recreated to avoid sharing the same attendee records
           between copies
docstring_tokens: When an event is copied the attendees should be recreated to avoid sharing the same attendee records between copies
function: def copy(self, default=None):
          """When an event is copied, the attendees should be recreated to avoid sharing the same attendee records
           between copies
           """
          self.ensure_one()
          if not default:
              default = {}
          # We need to make sure that the attendee_ids are recreated with new ids to avoid sharing attendees between events
          # The copy should not have the same attendee status than the original event
          default.update(partner_ids=[Command.set([])], attendee_ids=[Command.set([])])
          copied_event = super().copy(default)
          copied_event.write({'partner_ids': [(Command.set(self.partner_ids.ids))]})
          return copied_event
function_tokens: def copy ( self , default = None ) : self . ensure_one ( ) if not default : default = { } # We need to make sure that the attendee_ids are recreated with new ids to avoid sharing attendees between events # The copy should not have the same attendee status than the original event default . update ( partner_ids = [ Command . set ( [ ] ) ] , attendee_ids = [ Command . set ( [ ] ) ] ) copied_event = super ( ) . copy ( default ) copied_event . write ( { 'partner_ids' : [ ( Command . set ( self . partner_ids . ids ) ) ] } ) return copied_event