diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-09-24 16:59:15 +0000 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-09-24 17:45:37 +0000 |
| commit | d67b2483e5bfa5d8c1e6ef1a64fb933f5e080ad5 (patch) | |
| tree | 25a7fd39ac993f3c04c5d8408beb628b3c9948ce /odoo/service/model.py | |
| parent | 38d8b0526f0fccc32df5a11f5d086a3522ed5fcf (diff) | |
| parent | 9ed4872ea03f28012118ed48a43d0800617a84f3 (diff) | |
[MERGE] forward port branch saas-12.4 up to 9ed4872ea03
closes odoo/odoo#37372
Signed-off-by: Christophe Simonis <chs@odoo.com>
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) |
