how can i put privilege in menuitem for example salesman and administrator
You just have to fill the groups fields of the ir.ui.menu
. In XML it means creating record for ir.ui.menu-res.group
.
Once a menu has a non empty groups field, it is hidden to all users that are not in the groups.