Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
314 Visninger

Hello


I need to show "validate button" to inventory limited user.


After creating a new MO inventory limited user can't see validate button to validate the required material for MO.


So how to show the validate button


Thanks


Avatar
Kassér
Bedste svar

Hii,

Step 1: Give Write Access on Stock Picking

Go to:

Settings → Technical → Security → Access Control Lists

  1. Search for: Model = stock.picking
  2. Find the rule for: Inventory / User (stock.group_stock_user)
  3. Make sure it has:
permissionValue
Read✅ Yes
Write✅ Yes
Create✅ Yes
Delete❌ No


Update Record Rules (if needed)

Go to:

Settings → Technical → Security → Record Rules

  1. Search for: Model = stock.picking
  2. Look for any rule assigned to stock.group_stock_user
  3. If there is a domain like:
    [('user_id', '=', user.id)]

i hope it is help full

Avatar
Kassér
Bedste svar


Studio (Enterprise Only)

If you have Odoo Studio:

  1. Open the form view
  2. Click on studio icon (at upper right corner after the activity icon)
  3. Select the button
  4. In the right panel, set "Visible only for group"
  5. Choose the target group (e.g., Sales Manager)

Works without writing code!

Avatar
Kassér
Bedste svar

Hi,


In order to show the button for the limited user, you need to add a user group for the particular button.

To add a user group to the existing button, you need to change the button attribute as follows.


<xpath expr="//button[@name='button_name']" position="attributes">
<attribute name="groups">stock.group_stock_user</attribute>
</xpath>

You can also add it from the UI as,




Hope it helps

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
sep. 23
2153
2
mar. 23
10103
2
mar. 23
2495
2
maj 22
4476
0
mar. 22
1651