Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

I try to simply duplicate the Warehouse/Manager group so I can define a new group with less permissions.


But I got:

"Constraint Error

The name of the group must be unique within an application!"

It seems like the duplicate function is not changing the name to "Manager (Copy)" or something like that.

Thanks

Awatar
Odrzuć

I think this is a bug, extensively reported, as can be seen at the web. It happens not only with groups, but with journals also. Seems that the "duplicate" function only works OK when there is not a constraint. It should work even if the constraint exists, in order to allow to reproduce every property of the record, except the name.

Najlepsza odpowiedź

It is a long standing bug that has to do with the specific context.

It was as simple as adding:

context.pop('lang', False)

before the call to Super


Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

You can Export the user group to xls/csv and Import it with another value in 'Name' field. This makes a duplicate and you can adjust the new entry as you wish. Tested and works fine.

Awatar
Odrzuć
Najlepsza odpowiedź

If it is a new group then new name . answer is in your question !..

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lis 17
3774
1
lis 24
1033
3
kwi 23
17454
1
gru 22
13644
1
mar 15
6130