Thursday 9 February 2017

How to disable or invisible Edit and Create button as per group.

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

2 comments:

  1. i want to hide edit and create button in fleet module, can you help me please :)

    ReplyDelete

Odoo 17 New Features

  Odoo 17 new Features 1) Duplicate  multiple records from List view. Please have look below screenshots first you need to select records th...