İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
311 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt


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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eyl 23
2153
2
Mar 23
10103
2
Mar 23
2495
2
May 22
4476
0
Mar 22
1651