Corrected a bug on the attribution of the 'User roles' default application to a created user group on role creation.

This commit is contained in:
Etienne Ferriere
2020-09-28 12:27:30 +02:00
committed by Vincent Hatakeyama
parent 02f5fc7465
commit 43dd2c2265

View File

@@ -32,6 +32,7 @@ class ResUsersRole(models.Model):
default=lambda cls: cls.env.ref("base_user_role.ir_module_category_role").id,
string="Associated category",
help="Associated group's category",
readonly=False,
)
@api.depends("line_ids.user_id")