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

I am updating user group permissions via an Excel sheet. I have the user's database record and specified the technical name of the group I want to update (sel_groups_49_50). The import UI recognizes the technical group name and specifies the correct field. When I click import, I receive an error that only states the technical name of the field.

I'm not sure if there is an additional step or permission required to update permission records. This is v12.

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

Hi Alex,

I assume that you are working with the res.users list. So, one row for each user. You must have at least two columns. "id" and "groups_id/id".

Example:

"id": base.user_admin

"groups_id/id": base.group_erp_manager,account.group_account_invoice,base.group_partner_manager,base.group_user,product.group_product_variant,base.group_system,account.group_show_line_subtotals_tax_excluded,base.group_no_one,account.group_products_in_bills

Odoo expects that in column 'groups_id/id' you will add all the groups that define this user. Not just the new ones.

There's no option to just add one extra group to a user. 

I'd recommend that you use the module https://github.com/OCA/server-backend/tree/12.0/base_user_role.

This module would allow you to standarize the roles in your company, and just assign users to predefined company roles.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 20
6312
User permissions Đã xử lý
1
thg 2 19
4667
1
thg 8 24
1974
4
thg 5 24
3375
2
thg 3 24
5605