Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
26187 Tampilan

Is there any option in odoo to block users to create and update product details  based on their role or permission.

 

Avatar
Buang
Jawaban Terbai

You can restrict any user from creating a new product by following these steps:

- Go to:

Settings > in "Users" Select "Manage Users"

Select the user which you need to restrict him from creating a new product.

Select "Edit" then in "Inventory" Select "User" ((Do Not Select Administrator)) then click save.

..

Settings > User & Companies > Select "Groups"

Search for "Inventory / User" then Select it

Select "Access Rights" then Select "Edit"

In the table, you will see "product.template stock user" ..

Tick inside "Create Access" to allow users to create a new product or untick to restrict the user from creating a new product.



Regards,

Yousif Al Qallaf

Avatar
Buang

Tried the above but to no avail.
User is set as user, box is unticked.
Still user can create products.

Hi Guy, had a similar issue as you but discovered if you do the above steps, AND also untick "Create Access" for "stock.inventory user", the Create button is removed.

Hope this helps!

Jawaban Terbai

Hi,

there is a module for that: https://apps.odoo.com/apps/modules/11.0/product_access_restriction/

Avatar
Buang
Jawaban Terbai

You can control the Access Rights for any models in odoo. In this case, you are wanting to edit the product.product (and possibly product.template) access rights. Make sure you have technical features enabled for the user you are logged into. 

1. Go to Settings > Technical > Database Structure > Models

2. Search for the model you want to change (product.product). 

3. Select the product and go to Edit. Select the second tab that reads "Access Rights".

4. Select the Read, Write, Create and Delete permissions you want each group to have. (You can control groups and membership of groups under the "Users" section of the same Settings tab. 

These permissions are typical CRUD rights common to most databases. You can learn more here: http://en.wikipedia.org/wiki/Create,_read,_update_and_delete.

I should add that, in my experience, you may find out after adjusting permissions that your users need access rights to unexpected models to accomplish your goals. Odoo error reporting does a good job of throwing errors in a popup with the model listed so you know to change it. 

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jun 25
1779
1
Des 24
2403
0
Nov 24
976
3
Apr 24
3636
1
Mei 24
5275