Daily updates from Odoo
Thursday, December 3, 2015
1 change · master
Resolved issues and error corrections
This change moves the setting that marks shared user groups into the core base module so it is always available when user permissions screens are rebuilt. It prevents certain shared groups from appearing incorrectly on user forms after module upgrades, reducing confusion and configuration mistakes.
Original PR description
Move share column to base instead of module share. The column is used to filter some groups and make them hidden from the res.users form. However, if a module was loaded before the module share (e.g. depends only from base), when upgraded, the eventual update of a res.group regenerated the res.user view (to compute in_group_XX fields). This recomputation was done before the module share was loaded in the registry (due to the dependency graph) and the override of get_application_groups was not done, including shared groups in the user form. As we can not guarantee that a module is loaded, better to move to base module. As share depends only of mail and is autoinstall, it was installed on most instances anyway. Fixes #6324 Fixes #5820 hacky workaround for 8.0 (if possible) coming soon