Is it 10% of the buy price?
There is no loss on selling modules, only on ships.
This is only if you sell your modules individually, if you sell the ship with your advanced mods still installed you get 90% return.
When upgrading individual modules you'll get 100% return on your trade in.
Would you buy a second hand TV for a retail price ?