Multipole expansion at the level of the action