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

Very good morning to all. I hope they are fine.


We are setting user permissions. We try to give a specific user or team read-only access to the product name, where only Buying can Edit/Read, and Sales can only Read.


When trying to modify the permissions from Settings->Users, these are modified for all users, and we need it to be only for one of them, and when trying to edit the Name field, it throws an error for being an internal Odoo field, and that can only be edited via code. Is there an alternative to be able to set read/write permissions on a field for a user or team?


Thank you. Good day.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Betoloti24,

You need use use in your xml view inherit and then like below image.

  • If this not work then you need to use override fields_view_get() method like below.
  • Using Python

Thank you.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 8 23
3884
1
thg 10 22
3412
3
thg 7 22
2827
2
thg 7 22
4584
3
thg 12 21
4345