Commit Graph

13 Commits

Author SHA1 Message Date
Martin Trigaux 44248a07a5 [FIX] base,share: error in_group_xx on user form
res.users form contains virtual fields in_group_ID to be added in res.groups.
Groups with boolean share=True (added by share module) must not be displayed in
the form and should not be modifiable through the user interface.
However, if a module adding/modifying a res.group is earlier in the dependency
graph than 'share' (e.g. only depends from 'base'), the update of the user view
is done before share is loaded and the overrride of 'get_application_groups' is
never executed.

As we can not guarantee that the module is share loaded, put the logic of
hidding the module in base instead of share.

This workaround is quite hacky but is necessary in stable version.
Better fix in 9.0 at cf63d4d

Fixes #6324
Fixes #5820
2015-11-30 13:11:02 +01:00
Olivier Dony a09dadd253 [FIX] share: reduce risk of slowdowns during res.groups changes
Databases with thousands of users would experience
poor performance during any change to a group during
an update/install, caused by the prefetching of
all database users when the browse cache contains
most of the groups in the system.
2014-07-23 23:32:13 +02:00
Christophe Simonis 0fad8159f3 [MERGE] forward port of branch saas-3 up to revid 9380 chs@openerp.com-20140407144439-10n8fs6zovodwwtx
bzr revid: chs@openerp.com-20140407163318-hh3jwfkj3o2c83lk
2014-04-07 18:33:18 +02:00
Christophe Simonis c6b281c3f0 [FIX] share: move inheritance from res.user before the one from res.groups because res.groups need the change on res.users in its init() function.
[FIX] share: call parent init() if present in res.groups

bzr revid: chs@openerp.com-20140403153129-jq9zc7ityoy25c73
2014-04-03 17:31:29 +02:00
Christophe Simonis a59b438ceb [FIX] share: at module init force re-generation of the user groups view without the shared groups
bzr revid: chs@openerp.com-20140403145815-i3q3cprl2rvdfunf
2014-04-03 16:58:15 +02:00
Denis Ledoux 6cf9867f15 [REF] *: share field is now a computed field, if the user is in the employee group or not
bzr revid: dle@openerp.com-20140324143558-jqdm33c0i7wna3va
2014-03-24 15:35:58 +01:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Olivier Dony c2670d16f7 [FIX] share: res.users API change to avoid global var usage
bzr revid: odo@openerp.com-20111215154220-824h7pcuj4o4n5ms
2011-12-15 16:42:20 +01:00
Raphael Collet 6f1eebd5a2 [FIX] share: add domain to hide share groups from the res.users form
bzr revid: rco@openerp.com-20111209125741-1b4um49lcdqb3j73
2011-12-09 13:57:41 +01:00
Numerigraphe - Lionel Sausin 779fa653c1 [IMP] Added missing vim mode lines
lp bug: https://launchpad.net/bugs/524279 fixed

bzr revid: ls@numerigraphe.fr-20111122085138-x6u2lcl6vrpyybp9
2011-11-22 09:51:38 +01:00
Olivier Dony c39513038a [FIX] share: un-needed groups attribute, also contains typo
lp bug: https://launchpad.net/bugs/863089 fixed

bzr revid: odo@openerp.com-20110930082749-noyygg1rvpmd9343
2011-09-30 10:27:49 +02:00
Olivier Dony ad15fa3385 [IMP] share: much more complete implementation of share wizard, pending some improvements + web widget creation
bzr revid: odo@openerp.com-20101017051319-p4xi0epaqmgvwdmr
2010-10-17 07:13:19 +02:00