Odoo Help


How do you duplicate a user group? When using "Duplicate" option it gives a constraint error

on 10/3/15, 6:41 AM 1,240 views

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.


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.

Daniel Blanco
on 2/23/16, 7:32 AM

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

Marko Happonen
On 10/4/16, 2:46 PM


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.

Maurice Agée
On 10/3/15, 9:17 AM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/3/15, 6:41 AM
Seen: 1240 times
Last updated: 11/1/17, 3:59 PM