From 8ecba999d9bac4c9ad8c1037f69caa9dc5e17660 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Wed, 13 Jan 2016 14:21:46 +0100 Subject: [PATCH] [PORT] Port base_suspend_security to 9.0 --- base_suspend_security/__openerp__.py | 2 +- base_suspend_security/models/ir_model_access.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/base_suspend_security/__openerp__.py b/base_suspend_security/__openerp__.py index 906d90191..adabd3c73 100644 --- a/base_suspend_security/__openerp__.py +++ b/base_suspend_security/__openerp__.py @@ -30,7 +30,7 @@ "test": [ ], "auto_install": False, - 'installable': False, + 'installable': True, "application": False, "external_dependencies": { 'python': [], diff --git a/base_suspend_security/models/ir_model_access.py b/base_suspend_security/models/ir_model_access.py index 2f9ad850d..9a0afa3d9 100644 --- a/base_suspend_security/models/ir_model_access.py +++ b/base_suspend_security/models/ir_model_access.py @@ -24,7 +24,8 @@ from ..base_suspend_security import BaseSuspendSecurityUid class IrModelAccess(models.Model): _inherit = 'ir.model.access' - @tools.ormcache_context(accepted_keys=('lang')) + @tools.ormcache_context('uid', 'model', 'mode', 'raise_exception', + keys=('lang',)) def check(self, cr, uid, model, mode='read', raise_exception=True, context=None): if isinstance(uid, BaseSuspendSecurityUid):