That’s not from Realistic Livestock: RL doesn’t use Ctrl+P at all. P opens the shop in the base game, so check the key binding for the mod that draws the line under Controls in the game settings.