Jürgen Spitzmüller wrote:
I also took the \requirepackage{todonotes} out of the module-preamble, and put it in the document manually, so that I can disable todonotes from time to time with \usepackage[disabled]{todonotes}.putting "disabled" in Document->Class Options will also work.
I'd forgotten about that. How does LyX know which packages to disable? Nick