title: How to remove data from Many2many field via custom method in wizard in odoo 10?
body: <p>I have two views :
  1. Registration form view
  2  Update Registration Wizard view.
  Models :
  1 Registration
  2  Members</p>
  
  <p>I am setting up a registration process with Many2many fields ('members').
  After registration process, a Button (Update Members) showing on Form view.
  When clicking this button appears a wizard window where registered members are showing. 
  Here i need to delete some members ( from listed members on wizard) and click on ApplyChanges button for changes (calling custom function - ApplyChanges). And atlast changes will be applied on main Registrations model.how can i do this??</p>
  
  <pre><code>incoming_member_ids = fields.Many2many("members", String='Incoming Members')
  </code></pre>
  
  <p>outgoing_member_ids = fields.Many2many("members", String='Outgoing Members')</p>
  
  <pre><code>### incoming members list
  if x.action_type == 'incoming_members':
     for incoming_partner in x.incoming_members_ids:
        incoming_member_ids.append(incoming_member.id)
        if not incoming_member_ids:
          continue
        self.env['registered.members'].create({
       'member_ids': incoming_member_ids[0],
       })
       incoming_member_ids.remove(incoming_member_ids[0])
     return True
    ### Outgoing members list  
   elif x.action_type == 'outgoing_members':                   
      for outgoinging_member in res.outgoing_member_ids:
          outgoing_member_ids.append(outgoinging_member.id)
          if not outgoing_member_ids:
             continue
        self.env['registered.members'].create({
       'member_ids': outgoing_member_ids[0],
       })    
       outgoing_member_ids.remove(outgoing_member_ids[0])
     return True
  </code></pre>