I haven't tried it myself, but I've read that if you have a closed room with exposed floor, you can turn on "moveobjects on" and your sim WILL plant in the dirt. Again, I haven't tried it, but Twallan was the source and I trust him. If you don't care about the negative moodlet for the 'unfinished room', then by all means, plant in the ground inside the room.