Such a restriction cannot be imposed
It can only be mutual
It's ok if its stated that whenever any party wishes to sell his share then it should be first offered to other parties who would have a right of first refusal
This is for keeping the property within the family
A wholesale restriction against sale of share cannot be imposed in the partition deed