diff options
Diffstat (limited to 'odoo/service/model.py')
| -rw-r--r-- | odoo/service/model.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/service/model.py b/odoo/service/model.py index 9673b6f98c9..82a32c2cfc1 100644 --- a/odoo/service/model.py +++ b/odoo/service/model.py @@ -157,6 +157,7 @@ def check(f): return wrapper def execute_cr(cr, uid, obj, method, *args, **kw): + odoo.api.Environment.reset() # clean cache etc if we retry the same transaction recs = odoo.api.Environment(cr, uid, {}).get(obj) if recs is None: raise UserError(_("Object %s doesn't exist") % obj) |
