diff options
| author | Olivier Dony <odo@openerp.com> | 2010-12-09 11:57:33 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2010-12-09 11:57:33 +0100 |
| commit | 9daa68e67c17efbac26ece2a9e9d19df14ac439a (patch) | |
| tree | 2ace4dab3f8483a67b3fa955a3c45b8d329eec9f /bin/addons/base/ir/ir_model.py | |
| parent | c8f985e83195c3d037b17333a7b180e453b3029a (diff) | |
[IMP] orm,base: added context to _constraints functions + use generic osv.osv.check_recursion()
lp bug: https://launchpad.net/bugs/525808 fixed
bzr revid: odo@openerp.com-20101209105733-j3uffwp4rl07nzc4
Diffstat (limited to 'bin/addons/base/ir/ir_model.py')
| -rw-r--r-- | bin/addons/base/ir/ir_model.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/addons/base/ir/ir_model.py b/bin/addons/base/ir/ir_model.py index 583985b5930..80a24a45720 100644 --- a/bin/addons/base/ir/ir_model.py +++ b/bin/addons/base/ir/ir_model.py @@ -81,8 +81,8 @@ class ir_model(osv.osv): 'state': lambda self,cr,uid,ctx=None: (ctx and ctx.get('manual',False)) and 'manual' or 'base', } - def _check_model_name(self, cr, uid, ids): - for model in self.browse(cr, uid, ids): + def _check_model_name(self, cr, uid, ids, context=None): + for model in self.browse(cr, uid, ids, context=context): if model.state=='manual': if not model.model.startswith('x_'): return False |
