Go to Point of Sale → Configuration → Point of Sale.
In Lock price or discount section, set Lock price or Lock discount
When the user click on Price or Discount, a popup will ask password
If the password is right, the user is able to change price or discount
If the password is wrong, a popup will appear