Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4 Replies
129 Tampilan

hello 

how can i disable edit on sale order for specific user 

Avatar
Buang
Jawaban Terbai

Hi,

To disable editing of Sales Orders for specific users in Odoo, the recommended approach is to use access control lists (ACLs). You can create a new security group (e.g., “Read Only Sales Orders”), remove write, create, and delete permissions for the sale.order model in ACLs, and assign this group to the users you want to restrict. This allows them to view sales orders but prevents any modifications.


For finer control, you can use record rules to restrict users to only read their own sale orders. This involves creating a record rule on sale.order with a domain filter like [('user_id', '=', user.id)] and enabling read-only access.

Alternatively, you can hide the Edit button in the UI using Studio or XML view customization, but this is only a visual restriction and should be combined with ACLs for full protection. These approaches can be used individually or together to control who can edit sales orders in Odoo.


Hope it helps

Avatar
Buang
Jawaban Terbai

Hello Othmane, disabling edit access on sale orders for specific users typically involves adjusting user rights within Odoo.



  First, navigate to Settings > Users & Companies > Users and select the user you wish to restrict.

  Then, check their current access rights. If they have access via a group like "Sales Manager" or "Administrator," you will need to adjust this.

  Create a new security group (if one doesn't exist) with limited access to sale orders, specifically removing write access. This can be done via Settings > Technical > Security > Access Rights. You may need to activate developer mode to see the "Technical" menu.

  Assign the user to this new security group and remove them from the groups that grant broader access.

  Test by logging in as the user to confirm they can view sale orders but not edit them.


For personalized assistance:
https://www.pragtech.co.in/contact-us-mql.html

Avatar
Buang
Penulis Jawaban Terbai

restict the usser to update products on sale order


Avatar
Buang
Jawaban Terbai

Hello,

It depends on what you want to restrict the user from accessing. You can manage this by configuring Access Rights and Record Rules in Odoo.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Nov 24
2297
1
Sep 25
573
1
Mei 25
1398
1
Jan 25
1937
1
Nov 24
2347