Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3910 มุมมอง

i need to remove the delete option from action menu of purchase order from both form and tree view.

Any easy for acheving it,can i inherit the existing form and tree view and disable the delete option = false

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can easily do it by frontend. Purchase application have 2 user groups, One is Purchase/Administrator, Other is Purchase/User. FYI, Purchase/Administrator group already inherited with Purchase/User group. Alright then when you want to hide/disable the delete option from the action from the list and form view, follow the below step

Enable the developer mode, then go to Settings ---> Technical ---> Models. Search purchase.order model. then you can get the model record, open it and under the access right tab you can see all assigned user groups. By default the delete access checkbox have enabled for Purchase/Administrator & Purchase/User , so you have to untick the delete boolean from the needed group. then Save and go back to purchase. you can see the change


The same method , you can try from backend too by inheriting the fundamentals
Hope it works for you

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

you can used  User Access Rights.
  Menu :  Technical > Security > Access Rights or Please refer  https://www.odoo.com/documentation/14.0/applications/general/users/access_rights.html

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Confirm on delete one2many line แก้ไขแล้ว
5
ก.ค. 20
10667
How can i change product_id view แก้ไขแล้ว
2
ธ.ค. 19
3626
2
ต.ค. 15
10734
1
ส.ค. 24
6658
0
พ.ค. 21
4758