'Undo a reconciliation'

@api.multi
def remove_move_reconcile(self):

    if (not self):
        return True
    rec_move_ids = self.env['account.partial.reconcile']
    for account_move_line in self:
        for invoice in account_move_line.payment_id.invoice_ids:
            if ((invoice.id == self.env.context.get('invoice_id')) and (account_move_line in invoice.payment_move_line_ids)):
                account_move_line.payment_id.write({'invoice_ids': [(3, invoice.id, None)]})
        rec_move_ids += account_move_line.matched_debit_ids
        rec_move_ids += account_move_line.matched_credit_ids
    return rec_move_ids.unlink()
