The only case where this could be acceptable is when you work in the R & D dept. of a company. If you are hired for specific tasks (which is usually the case) then everything else you do should belong to you, only. Einstein produced most of the work that led to the relativity theory while he was an employee of a patent office. Should the patent office claim anything related to his work in physics? It would be really absurd, if it did.