diff options
| author | Foram Katharotiya (OpenERP) <fka@tinyerp.com> | 2013-12-13 18:21:09 +0530 |
|---|---|---|
| committer | Foram Katharotiya (OpenERP) <fka@tinyerp.com> | 2013-12-13 18:21:09 +0530 |
| commit | c498a4e8bce677b5a12bb1c75deab4d3b2b38ce4 (patch) | |
| tree | 06c5ee442064406079166b77f75cea633e5b39b0 /addons/document/document.py | |
| parent | a71cb6e1950290ffcbfd00e3bd93967af807e2b7 (diff) | |
| parent | 94b4618c130e325800eee33041909af8733dd567 (diff) | |
[MERGE] with 7.0
bzr revid: fka@tinyerp.com-20131213125109-jjq1svpf0oyjykq5
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/document/document.py b/addons/document/document.py index a39be42e77c..d77dce5288a 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -70,7 +70,11 @@ class document_file(osv.osv): def check(self, cr, uid, ids, mode, context=None, values=None): """Overwrite check to verify access on directory to validate specifications of doc/access_permissions.rst""" + if not isinstance(ids, list): + ids = [ids] + super(document_file, self).check(cr, uid, ids, mode, context=context, values=values) + if ids: self.pool.get('ir.model.access').check(cr, uid, 'document.directory', mode) |
