[FIX] share: at module init force re-generation of the user groups view without the shared groups
bzr revid: chs@openerp.com-20140403145815-i3q3cprl2rvdfunf
This commit is contained in:
parent
27be515eab
commit
a59b438ceb
|
@ -19,6 +19,7 @@
|
|||
#
|
||||
##############################################################################
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import SUPERUSER_ID
|
||||
|
||||
class res_groups(osv.osv):
|
||||
_name = "res.groups"
|
||||
|
@ -28,6 +29,10 @@ class res_groups(osv.osv):
|
|||
help="Group created to set access rights for sharing data with some users.")
|
||||
}
|
||||
|
||||
def init(self, cr):
|
||||
# force re-generation of the user groups view without the shared groups
|
||||
self.update_user_groups_view(cr, SUPERUSER_ID)
|
||||
|
||||
def get_application_groups(self, cr, uid, domain=None, context=None):
|
||||
if domain is None:
|
||||
domain = []
|
||||
|
|
Loading…
Reference in New Issue