Device for ejecting a liquid or pasty product, comprising a body (2) that has a portion (2a) designed to contain the product to be ejected and that has a hole (13) for ejecting the product, a rack (3) that moves in a bore (20) in the body (2) and causes the volume of the portion (2a) designed to contain the product to vary, and a rack (3) movement mechanism comprising a pivoting lever (1) and a pawl (4) for acting on the rack (3), which device is characterized in that the pawl (4) and the lever (1) form a one-piece plastics structure.