コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
312 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
9月 23
2153
2
3月 23
10103
2
3月 23
2495
2
5月 22
4476
0
3月 22
1651