From 98c1a82e681e9152bc68ee76b89e7cf029a7371c Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 17 Mar 2015 19:29:54 +0100 Subject: [PATCH] [FIX] mail, share: correct module update. a6eac0f08ee9100d1a44a4068d4f580b1c7c4b2c introduced a new `res.groups` belonging to the "Sharing" category. As this group has the flag `shared`, it is ignore when generating the group's user view (and its virtual fields). When updating `mail` module, the `share` module (which depend on mail) is not loaded yet. This mean this new group is taken into account when getting the `res.users` virtual fields. As this group belong to the same category as the `share.group_share_user` group but dont have an inheritance link between them (`implied_ids`), they are generated as `boolean` instead of a single entry `selection` field. This create a missmatch between the fields and the previously generated view, which forbid inheritance application. Force view regeneration, to avoid it. Also change the group's category as this group is purely technical and must be hidden anyway. --- addons/mail/res_users_view.xml | 12 ++++++++++++ addons/share/security/share_security.xml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/addons/mail/res_users_view.xml b/addons/mail/res_users_view.xml index eef2924134f..7bbe369c4d7 100644 --- a/addons/mail/res_users_view.xml +++ b/addons/mail/res_users_view.xml @@ -16,6 +16,18 @@ + + + res.users.form.mail diff --git a/addons/share/security/share_security.xml b/addons/share/security/share_security.xml index b65875608b7..1d77d222800 100644 --- a/addons/share/security/share_security.xml +++ b/addons/share/security/share_security.xml @@ -19,7 +19,7 @@ Members of this groups have access to the sharing wizard, which allows them to i Shared Group This group is a template group for shared users, giving basic access needs, the menus for instance. - + 1