How to disable or invisible Edit and Create button as per group.
Follow below example.
Follow Below step.
1 ) Open Setting-> Technical-> user Interface-> Views
2 ) Create one view like below.
View Name :- Give name for view
View Type :- Form
Object :- product.product
Sequence :- 16
Inherited View :- product.product.form
View inheritance mode :- Extension View
Active :- True
3 ) Add below code in Architecture tab.
<data>
<xpath expr='//form[@string="Product Variant"]' position="attributes">
<attribute name="edit">false</attribute>
<attribute name="create">false</attribute>
</xpath>
</data>
4 ) Add any group in Groups Tab.
Ex. -> your own group
Follow below example.
Follow Below step.
1 ) Open Setting-> Technical-> user Interface-> Views
2 ) Create one view like below.
View Name :- Give name for view
View Type :- Form
Object :- product.product
Sequence :- 16
Inherited View :- product.product.form
View inheritance mode :- Extension View
Active :- True
3 ) Add below code in Architecture tab.
<data>
<xpath expr='//form[@string="Product Variant"]' position="attributes">
<attribute name="edit">false</attribute>
<attribute name="create">false</attribute>
</xpath>
</data>
4 ) Add any group in Groups Tab.
Ex. -> your own group