Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
313 Переглядів

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


Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь


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!

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
вер. 23
2153
2
бер. 23
10103
2
бер. 23
2495
2
трав. 22
4476
0
бер. 22
1651