Browse Source

Merge pull request #333 from acsone/9.0-port-base_suspend_security-ape

[PORT] Port base_suspend_security to 9.0
pull/380/head
Pedro M. Baeza 9 years ago
parent
commit
ffdee61940
  1. 4
      base_suspend_security/__openerp__.py
  2. 3
      base_suspend_security/models/ir_model_access.py

4
base_suspend_security/__openerp__.py

@ -19,7 +19,7 @@
##############################################################################
{
"name": "Suspend security",
"version": "8.0.1.0.0",
"version": "9.0.1.0.0",
"author": "Therp BV",
"license": "AGPL-3",
"category": "Hidden/Dependency",
@ -30,7 +30,7 @@
"test": [
],
"auto_install": False,
'installable': False,
'installable': True,
"application": False,
"external_dependencies": {
'python': [],

3
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):

Loading…
Cancel
Save