# -*- coding: utf-8 -*-# Copyright 2016 - Ursa Information Systems <http://ursainfosystems.com># License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)fromopenerpimportapi,modelsclassResUsers(models.Model):_inherit='res.users'@api.modeldeffetch_export_models(self):accessobj=self.env['ir.model.access']accessobj_ids=accessobj.search([('perm_export','=',True),('group_id','in',self.env.user.groups_id.ids),])model_names=[access_obj.model_id.modelforaccess_objinaccessobj_ids]returnlist(set(model_names))