Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
316 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 23
2153
2
thg 3 23
10104
2
thg 3 23
2495
2
thg 5 22
4476
0
thg 3 22
1652